I'm trying to run a loop that goes 1 + 1/3 + 1/5 - 1/7 + 1/9....so on
but it keeps coming up as 1!
I have tried
double answer = 1 + 1/3 + 1/5 - 1/7 + 1/9 - 1/11;
displays 1
the math is weird like I even messed around and tried
double answer = 1 / 5; //should display 0.2
displays 0!!!!!!!!