Saturday, 26 May 2018

Program to input a number from user number and then find square root of this number in C

/* program to find square root */
# include <stdio.h>
# include <math.h>
void main ()
{
int a,b ;
clrscr () ;
printf ("/n enter a number:") ;
scanf ("%d", & a) ;
b =   sqrt (a) ;
printf ("/n sqrt of a %d", b) ;
getch () ;

No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...