Question 1:
Write a program that reads in 100 numbers and finds the sum of all those numbers.
Question 2:
Write a program that reads in 50 numbers and then finds the average out of those numbers.
Question 3:
Write a program that reads in 20 numbers and finds the sum of those 20 numbers. Inside the same program, make another loop that reads in 10 numbers but subtracts them from the total sum of the first 20 numbers.
No comments:
Post a Comment