analysis:
Enter the number of cycling shoes only achievement, for the cumulative sum, the final output sum / number you can!
Code:
#include <stdio.h> int main () { float SUM = 0 , Score; // Score represents some shoes achievements, sum to 0 Oh! int n-, Number; // n-represents the order of shoes the printf ( " Please enter the few shoes: \ n- " ); scanf_s ( " % d " , & Number); // only enter the number of the printf ( " Enter a% d only shoes results: \ n- " , Number); for (n-= . 1 ; n-<= Number; = n-n-+ . 1 ) { scanf_s ( " % F " , & score); //Enter here the results of children's shoes yo! + SUM = SUM Score; } the printf ( " The average score of shoes .1f% \ n- " , SUM / Number); }