1. Write a program that uses one loop to process the integers from 300 down to 200, inclusive. The program should detect multiples of 11 or 13, but not both. The multiples should be printed left-aligned in columns 8 characters wide, 5 multiples per line (See Example Output). When all multiples have been displayed, the program should display the number of multiples found and their sum. Example Output 299 297 275 273 264 260 253 247 242 234 231 221 220 209 208 Found ?? integers totaling ??

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 13E
icon
Related questions
Question

In java please. thank you!

1. Write a program that uses one loop to process the integers from 300 down to 200,
inclusive. The program should detect multiples of 11 or 13, but not both. The multiples
should be printed left-aligned in columns 8 characters wide, 5 multiples per line (See
Example Output). When all multiples have been displayed, the program should display the
number of multiples found and their sum.
Example Output
299 297 275 273 264
260 253 247 242 234
208
231 221 220 209
Found ?? integers totaling ??
Transcribed Image Text:1. Write a program that uses one loop to process the integers from 300 down to 200, inclusive. The program should detect multiples of 11 or 13, but not both. The multiples should be printed left-aligned in columns 8 characters wide, 5 multiples per line (See Example Output). When all multiples have been displayed, the program should display the number of multiples found and their sum. Example Output 299 297 275 273 264 260 253 247 242 234 208 231 221 220 209 Found ?? integers totaling ??
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,