11.(C)printing squre root of any given number

 #include<stdio.h>

#include<math.h>
int main(){
    int a;
    float sqroot;
    printf("Enter the value of a \n");
    scanf("%d",&a);
    sqroot=(float )(pow (a,0.5));// we have to use direct number in pow to get expected value

    printf("The squre root of a is %.2f ", sqroot);

        return 0;
}

Comments