Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5.  
  6. int main()
  7. {   int a;
  8.     scanf("%d", &a);
  9.     float n;
  10.     float sar = 0;
  11.     for(a;a <= 200 ;a++){
  12.             sar += a;
  13.             n++;
  14.     }
  15.     printf("%f", sar/n );
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement