Traditional Culture Encyclopedia - Photography major - Chengdu sum wedding photography
Chengdu 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 much is the ticket to the lion park?
- Invitation letter for wedding photography new shop
- What is the film grading system?
- What about Wuhu Longwen Film and Television Media Co., Ltd.?
- In the dream, the pursuit of nine-color deer and butterflies can't be found
- How does Xiamen Huashu Hotel feel? Okay?
- How to set Chinese in Ps4 Spider-Man?
- Excuse me, where is the bicycle wholesale in Guangzhou?
- What is the Owner-Merchant Alliance?
- How many hours is twelve minutes?