j
why?
BinaryByter
look at your code
klimi
*looks at his... * never mint
j
cmon
j
it's the first time a write c code
BinaryByter
well then don't do such hard things
BinaryByter
but still, in C++ you could do it a lot cleaner
j
iwanna learn
BinaryByter
learn C++
klimi
let him do c
j
so what's wrong with my code
j
?
klimi
idk
klimi
i havent looked
BinaryByter
but its so ugly because of C that I won't bother looking at it
j
thank you
j
anyway
Anonymous
Morning dear friend
Anonymous
Thank you admin
Sant
Hello admin
Anonymous
Can someone tell two different cases where post and pre increment operators can be used in c programming
Vijay
Hi
Anonymous
Hii too
klimi
Yo~
dev
Welcome
Anonymous
Welcome
Welcome
Anonymous
/saved
A
Hi can u snd me all the programs of c and c++???
Mat
Can someone tell two different cases where post and pre increment operators can be used in c programming
They can be used nearly everywhere, usually if you're counting something
Mat
You can use ++i in loops
Mat
Or i++ during assignments
Mat
Whatz this
Two sites to share code
BinaryByter
Whatz this
Click on them, shithead
BinaryByter
Collins
Hello guys ..can someone help me put with that👆
BinaryByter
you need to calculate the infinite sum term for term until you get the desired precision
Mat
#howtoask
Collins
Ok thank you ..i will rephrase it
Anonymous
Hello guys ..can someone help me put with that👆
#include <stdio.h> #include <stdlib.h> main() { double n, i; // Number of iterations and control variable double s = 1; //Signal for the next iteration double pi = 0; printf("Approximation of the number PI through the Leibniz's series\n"); printf("\nEnter the number of iterations: "); scanf("%lf",&n); printf("\nPlease wait. Running...\n"); for(i = 1; i <= (n * 2); i += 2){ pi = pi + s * (4 / i); s = -s; } printf("\nAproximated value of PI = %1.16lf\n", pi); }
Anonymous
Thanks
Copy fast.. They delete it
BinaryByter
Hello guys ..can someone help me put with that👆
4 * the infinite sum or 4 / the infinite sum?
BinaryByter
because with 4 * I get pi = 13
Anonymous
^
Using my code?
BinaryByter
NOT USING YOUR CODE I DON'T USE YOUR CODE
Anonymous
Then you mistake somewhere
Anonymous
OKAY DONT USE CAPS HERE
BinaryByter
BinaryByter
Then you mistake somewhere
yea, it was a silly one actually
BinaryByter
i forgot to swithch the sign
BinaryByter
Hayk
Hello guys ..can someone help me put with that👆
wth😂😂😂 C++, difficulty: expert
BinaryByter
wth😂😂😂 C++, difficulty: expert
yea, you need to be expert of the fries
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
🤣
Anonymous
🤣
Not laugh
BinaryByter
Not laugh
it's funny though
Mat
#include <stdio.h> #include <stdlib.h> main() { double n, i; // Number of iterations and control variable double s = 1; //Signal for the next iteration double pi = 0; printf("Approximation of the number PI through the Leibniz's series\n"); printf("\nEnter the number of iterations: "); scanf("%lf",&n); printf("\nPlease wait. Running...\n"); for(i = 1; i <= (n * 2); i += 2){ pi = pi + s * (4 / i); s = -s; } printf("\nAproximated value of PI = %1.16lf\n", pi); }
[In risposta a Collins Agesa] #include <stdio.h> #include <stdlib.h> main() { double n, i; // Number of iterations and control variable double s = 1; //Signal for the next iteration double pi = 0; printf("Approximation of the number PI through the Leibniz's series\n"); printf("\nEnter the number of iterations: "); scanf("%lf",&n); printf("\nPlease wait. Running...\n"); for(i = 1; i <= (n * 2); i += 2) { pi = pi + s * (4 / i); s = -s; } printf("\nAproximated value of PI = %1.16lf\n", pi); } It's difficult to do this?
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
Not laugh
Sorry I can't😁
BinaryByter
Dima
lool