sqrt example solved now we are on the page 30 pow

This commit is contained in:
Mert Gör
2024-11-22 06:54:50 +03:00
parent 6d36efe449
commit 6bf23d6f0e
2 changed files with 22 additions and 0 deletions

16
c-basic/sqrt.c Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
#include <math.h>
int main()
{
double val;
double result;
printf("Enter a number");
scanf("%lf", &val);
result = sqrt(val);
printf("%f\n", result);
return 0;
}