Traditional Culture Encyclopedia - Photography major - Wuhan sum wedding photography
Wuhan sum wedding photography
float a[ 10],sum,m;
int n;
sum = 0;
scanf("%d ",& ampn); //Note that the input value of n should be less than the array length you defined.
for(I = 0; I & ltn;; i++)
scanf("%f ",& ampa[I]);
for(I = 0; I & ltn;; i++)
sum = sum+a[I];
m = sum/n;
printf("%.2f ",m); The .2 in //%.2f can control the output to keep two decimal places.
- Related articles
- How to shoot flying pigeons in photography?
- The photos of the children during the day were not selected. What department has the photo studio been dragging on complaining about?
- Please explain what the word (ink attack) means.
- Frosted glass door: bring you a different home experience!
- Selected ancient poems of class reunion
- How to write a composition in Yueming Island, Jiangyou
- Why is the bird's nest built in the sky? Aren't they afraid of wind and rain?
- Xiao Cui said 20 1 1: The complete works of txt, the director's favorite novel, are free.
- Want to learn game special effects. I wonder how much the tuition is. How long is the study period? I hope that those who have experienced it will answer,
- Qiu China guzhuang movie and television base