C Program to Find Square Root of Entered Number

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

You May Also Like...

Socialize with Us