How to square root in c || Functions in C || No Arguments and No Return value || C Programming
In this, we are going to see the Functions that have no arguments and no return value, this program we are going to display Square Root in C Programming Language.



#include <stdio.h>
#include <stdlib.h>
#include <math.h>

float squareroot()
{
    system("cls");
    float a;
    printf("Enter a number:\n");
    scanf("%f", &a);
    float sqt;
    sqt = sqrt(a);
    printf("Square root of given number is: %f", sqt);
}

float main()
{
    squareroot();
    return 0;
}

//........Coded by JAIDEEP JAMBLE

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post