Question: 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
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. Page 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
Below you can find a simple C program that p... View full answer
Get step-by-step solutions from verified subject matter experts
