Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Numero pi Euler
//Title of this code //clang 3.6.0 #include <stdio.h> #include <math.h> int main(void) { double pi=0; int i, den=1; // i=1..99 // 2*i-1= 1,3,5,7,9... for (i=1; i<100; i++) //pi = pi + pow(-1, i+1)*4/(2*i-1); { pi = pi + pow(-1, i+1)*4/den; den+=2; } printf("\n\nValor aproximado de pi = %lf", pi); return 0; }
run
|
edit
|
history
|
help
0
Základy UDP
prestupn7 rok
Pointer_Indirectare_N
Herout (67) - 6
cv8_5
Bucles: Mayor de n números hasta teclear 0
correccion
c_tests
Sin(x) in C Teylor
Vectores: Burbuja ordenación