Traditional Culture Encyclopedia - Photography and portraiture - Guangzhou sum wedding photography
Guangzhou 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
- Autumn Impression Pure White Girl: Girl with Pearl Earrings? picture review
- How to design interior decoration style
- The hottest topic is "Appearance sealed by bangs". Can bangs really save a person's appearance?
- The 28th Admission List of Xue Tong Institution
- Opening time and address of Shanghai Jinshan Baihua Festival on March 23rd.
- Brief introduction of JamesWongHowe's life
- Translate Chinese into Korean-urgent!
- What are the interesting scenic spots in Taihang Mountain Grand Canyon?
- Radio \ \ telephone transmits information through symbols. What are the symbols that they convey information?
- Computer Host Configuration Suggestion 2022