C Program to find the square root of the number using function.

0
8
digitalample eye
Write a c program to find the square root of the number. 
Write a program to find the square root.
C Program to find the square root of the number using function.
C Program to find the square root of the entered number using function.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int num;
int squreroot(int num);
printf("Input Number:");
scanf("%d",&num);
squreroot(num);
getch();
}
int squreroot(int num)
{
printf("squreroot: %f",sqrt(num));
return 0;
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here