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
Section: Chapter Questions
Problem 9PP
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