Commit 741620f0 by chazog

Upload New File

parent cad4d340
Showing with 29 additions and 0 deletions
#include <stdio.h>
int main ()
{
int arr[10];
int i;
i=0;
while(i<10)
{
scanf("%d", &arr[i]);
i++;
}
float sum;
sum=0;
i=0;
while (i<10){
sum=sum+arr[i];
i++;
}
float ave=sum/10;
printf("The average is: %f\n", ave);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment