Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write this program and explain what each line of code is doing in the program. this needs to be in basic C programming Write
Please write this program and explain what each line of code is doing in the program. this needs to be in basic C programming
Write a program that prompts the user for an integer number from the keyboard, and store it in a variable num. After each number is typed in, add num to a total.
Do this six times, each time adding num to a total. (Be sure to reuse the same variable named num for each of the six numbers entered.) When all six numbers have been entered from the keyboard, calculate anaverage.
Display the total and average calculated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started