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 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
Get step-by-step solutions from verified subject matter experts
