Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. main ()
  4. {
  5. int i,n;
  6. printf("/nNhap so n ");
  7. scanf("%d", &n);
  8. float S=1;
  9. for(i=1;i<=n;i++)
  10. {
  11. S=sqrt(S+sqrt(i));
  12. }
  13. printf ("Tong S la %f", S);
  14. getch();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement