Headlines
Loading...
C Program to find Square root of a number

C Program to find Square root of a number

C Program to find Square root of a number 

#include<stdio .h="">
#include<conio .h="">
#include<math .h="">
void main()
{
 float num1,ans;
 clrscr();
 printf("\n Enter Number:");
 scanf("%f",&amp;num1);
 ans=sqrt(num1);
 printf("\n Square root of a number:%f",ans);
 getch();
}

  ***********Output**************

 Enter Number:64                                                                
                                                                                
 Square root of a number:8.000000</math></conio></stdio>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***