Traditional Culture Encyclopedia - Photography and portraiture - Chongqing sum wedding photography
Chongqing 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
- What are the characteristics of spring in the north?
- Is the success rate of the title plate of Fantasy Westward Journey related to spiritual strength and spell cultivation?
- How to store the magic ox octagonal soft box
- How to evaluate the finale of Hello, Flame Blue?
- What scenic spots in Wuzhen are worth recommending?
- Introduction of cultural tourist attractions of the Yao nationality in Hechi
- The strange customs and people's feelings in Ji 'an
- Award-winning record of Aunt’s postmodern life
- What is the media? What do you major in media?
- What pictures of swimsuits are there? How to wear a swimsuit?