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 Volume of given box in java

class volume { public static void main (String args []) { int l=5,b=6,h=10; int volume; volume=l*b*h; System.out.println (" vol...