sqrt example solved now we are on the page 30 pow
This commit is contained in:
parent
6d36efe449
commit
6bf23d6f0e
2 changed files with 22 additions and 0 deletions
16
c-basic/sqrt.c
Normal file
16
c-basic/sqrt.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue