Find the Square Root of a Number C Program

How to write a c program to find the square root of a number in c programming ?


Solution:
#include <stdio.h>
#include <math.h>

int main()
{
    double a;
    int b;

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

    a = sqrt(b);

    printf("%f",a);

    return 0;
}


Learn More :