Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Saturday, 9 February 2013

C PROGRAM: TO CALCULATE SQUARE ROOT OF ANY NUMBER

CODING:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
 float num,ans;
 clrscr();
 printf("Enter any number: ");
 scanf("%f",&num);
 ans=sqrt(num);
 printf("\n\nSquare root of %f is %f",num,ans);
 getch();
}


CODING

OUTPUT

For any query or suggestion please comment below...

No comments:

Post a Comment