Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
problemapi3
//Title of this code #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { double N,D,P; double s=0; double n=0; for(n=0; n <= pow(10,6); n++) { N=pow(-1,n); D=2 * n +1; P= N/D; s+=P; } printf("El valor de pi es %lf",4*s); return 0; }
run
|
edit
|
history
|
help
0
example of scanf and basic integer manipulation
Taco Code
My first program
Timestamp microsecond for C
A_141211_Tartaglia
data types and printf
C programming final grade
LinkedListTest
ALPAHABET PATTERNS
BSEARCH() WITH STRUCT