Create a loop that will output all the multiples


Assignment:

OP 1000C Intro Programming Concepts. DR Archibald Videos

1. Watch Video Lecture Segment 10 Mixed Type Expressions. Near the end of Segment 10 there are some practice exercises. This is Slide 10.7. Try them with a pencil. Then write a C program to verify your answers.

2. Watch Video Lecture Segment: 11 Problem Solving with Repetition. There are 3 problems solved. Test Scores, Gas Mileage, and Factorials. Type along with the video, pausing where necessary. Get each of these programs to work. Walk through the code in the debugger.

3- Include the use of ++, += in a program that achieves the following using loops.

A- Create a loop that will output all the multiples of 5 that are greater than zero and less than 60 (do not include 60).

B- Create a loop that will output all the numbers less than 200 that are evenly divisible by both 2 and 7. 14 28 ... C. Create a loop that will calculate the sum of the multiples of 8 that are between 100 and 500. Output the sum only. D. Create a loop that will output the sum of all odd numbers between 20 and 100.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Create a loop that will output all the multiples
Reference No:- TGS01814238

Now Priced at $45 (50% Discount)

Recommended (96%)

Rated (4.8/5)