About us

C Program to find square root of the given number

C Program to find the square root of the given number

c-program-square-root

#include<stdio.h>
#include<conio.h>
#include<math.h>

void main()
{
 float n,r;
 clrscr();

 printf("Enter number to find out it's Square root\n");
 scanf("%f",&n);
 r=sqrt(n);

 printf("The Square root of %f is %f",n,r);
 getch();
}

OUTPUT

Enter number to find out it's Square root
1024
The Square root of 1024.000000 is 32.000000



------------------------------------------------------------------------------------------------------------


You can also visit:-