1. Write a program using a for loop that will produce each of the following sequ
ID: 3534852 • Letter: 1
Question
1. Write a program using a for loop that will produce each of the following sequences:
a. 72, 70, 68, 66,……..6
b. The sum of the odd numbers between 21 and 51 inclusive
2. Write a program that uses a nested for loop to compute the average grade for a class of 12 students in each of three subjects. The program asks the user to enter the grade of each student in subject 1 and computes the average for that subject. This process is repeated for the other subjects.
4. Write a program that uses a loop structure to ask the user to enter an integer each time around the loop. The program computes the sum of only the even numbers entered from the keyboard. It stops at the end of file.
Explanation / Answer
http://ideone.com/lG9zXC
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.