Traditional Culture Encyclopedia - Photography major - Shanghai sum wedding photography
Shanghai 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.
- Previous article:Is Sony 24- 105G lens the best in dynamic and static video recording? Give me a reason?
- Next article:How to make gouache watermelon red
- Related articles
- Shangrao abbreviation
- Ask for a movie name!
- Must-see attractions in Beidaihe travel guide
- Luoxiluo xi town
- Ruyi's Royal Love in Palace Auction Times
- Photography major in Dongguan Vocational High School
- Sentiments about watching dragon boat races
- What is the best camera color for video?
- Analysis on the Registration Process and Business Scope of Electronic Technology Company [Panlong District Registered Company]
- How to draw the way home in senior two?