Advertisement
rafikamal

Find the Square Root of a Number

Jan 3rd, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     double a;
  7.     int b;
  8.  
  9.     printf("Enter number:",b);
  10.     scanf("%d",&b);
  11.  
  12.     a = sqrt(b);
  13.  
  14.     printf("%f",a);
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement