google

Thursday, 28 November 2013

Write a c program to find out the square root of number

/* square root of number */
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{
float a,b;
clrscr();
printf("enter base\t\t\t"); /*here \t\t\t is for tab purpose only*/
scanf("%f",&a);
b=sqrt(a);
printf("root of given number is \t %f",b); /*here \t\t\t is for tab purpose only*/
getch();
}


Unknown

About Unknown

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :