Commit 9dc7fee8 by emonyi

Upload New File

parent f9300a29
Showing with 34 additions and 0 deletions
#include <stdio.h>
int main () {
int array[10];
int i;
i=0;
while(i<10){
scanf("%d", &array[i]);
i++;
}
float sum;
sum=0;
i=0;
while (i<10){
sum=sum+array[i];
i++;
}
float ave=sum/10;
printf("the average is: %f", 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