Home Forums C Programming Approximate the value of PI Reply To: Approximate the value of PI

#3446
glimpse
Participant

I don’t understand so much from mathemics, but a problem migth be, that your variable i is an integer value.
Something else: What should happen, if (i%2==1) ?
I expect you mean the hole part: