Question: 1. a) Write a C program that sums the positive numbers up to 50 using a for-loop structure, finds the average and prints the sum

 1. a) Write a C program that sums the positive numbers

1. a) Write a C program that sums the positive numbers up to 50 using a for-loop structure, finds the average and prints the sum and average on the screen. b) Modify your program in such a way that it will sum unknown number of positive integers, find the average and print the sum and average on the screen. Hint: Use infinite for-loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!