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

Program to find maximum of three number using user define function in C++

A function can be define by the user as per the requirement of the user or programmer . To implement a user define function , a programmer ...