Pages

Saturday, December 3, 2011

C Programming to find the square root of any number


/* to find square root */
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
    float a,b;
    printf("Enter the number: ");
    scanf("%f",&a);
    b=sqrt(a);
    printf("The square root of %f is %f: ",a,b);
    system("pause");
    return 0;
}

No comments:

Post a Comment