Advertisement
nguyenhappy92

Tính căn bậc 2 của một số thực

Oct 16th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // tinh can bac 2 so thuc
  2. // Khai bao thu vien neu co
  3. #include<stdio.h>
  4. #include<conio.h>
  5. #include<math.h> // khai bao ham thu vien neu su dung sqrt
  6. void main()
  7. {
  8. double n;
  9. scanf("%lf",&n);
  10. printf(" Can bac 2 so thu la: \n");
  11. printf("%.4lf\n",sqrt(n));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement