Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <windows.h>
  3.  
  4. int main(){
  5.     int n, i = 0;
  6.     float sum = 0.0;
  7.     scanf("%d", %n);
  8.     for (i=0; i<n; i++){
  9.         sum += 3.0/(n*n+2*n);
  10.     }
  11.     printf("%f", &sum);
  12.     system("pause");
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement