C Program to Find Square Root of Entered Number

0
3
digitalample eye
Write a program to find the square root of entered number.
Write a c program to take input from user and calculate square root of that entered number.

C Code

#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{
float number;

printf("Enter number:");
scanf("%f",&number);

printf("square root of entered number %f is %f",number, sqrt(number));

getch();
}

Output

C Program to Find Square Root of Entered Number

LEAVE A REPLY

Please enter your comment!
Please enter your name here