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
2017_1117_TARTAGLIA
18BCE2182 ASSESS_1 Q1-9
Project 3 Part 1 v1.2
length
Binary to Integer (C)
lol
18BCE2182 LAB FAT-2(A)-(i)
Exm
Lab 10 v1
Project 3 Part 1 v1.3