Write a program that prints the numbers from 1 to 50 using a for loop. Rewrite the program using a do -while loop.
Write a program that uses a while loop to compute and print the sum and the average of the numbers entered from the keyboard one at a time.The program stops when the value entered is -99.