sqrt example solved now we are on the page 30 pow
This commit is contained in:
parent
6d36efe449
commit
6bf23d6f0e
@ -1,3 +1,9 @@
|
|||||||
|
2024-11-22 Mert Gör <mertgor@masscollabs.xyz>
|
||||||
|
|
||||||
|
* c-basic/C.pdf: Page 30 pow example
|
||||||
|
|
||||||
|
* c-basic/sqrt.c: Sqrt example written page 30
|
||||||
|
|
||||||
2024-11-10 Mert Gör <mertgor@masscollabs.xyz>
|
2024-11-10 Mert Gör <mertgor@masscollabs.xyz>
|
||||||
|
|
||||||
* c-basic/C.pdf: Page 29(end of 29) and 30 Bazı matematiksel standart c fonksiyonları
|
* c-basic/C.pdf: Page 29(end of 29) and 30 Bazı matematiksel standart c fonksiyonları
|
||||||
|
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…
x
Reference in New Issue
Block a user