Question: #include int main ( ) { int count = 0 ; double number, sum, mean = 0 ; / / Using Do / While to
#include
int main
int count ;
double number, sum, mean ;
Using DoWhile to calculate sum, count, and mean
printfUsing a DoWhile to calculate statistics
;
do
printfEnter a positive number: ;
scanflf &number;
if number
sum number;
count ;
mean sumcount;
whilenumber ;
printfSum lf
sum;
printfCount d
count;
printfMean lf
mean;
printfThank you!";
return ;
Add a While loop to calculate the same statistics
Run your program testing for input
Make sure your calculations are accurate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
