Programming

C – Find the Square Root Number Using the Function

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

#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;
}

Tuts

About Author

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.