I am new to programming. Why will my y variable not increment inside the inner loop? i was expecting 10(y) to be divided 1 thru 10(x)then decrease y by 1 and x by 1 (x<=y), and start the whole process again until i reached 0. How do I do this? here is what i have.
First of all, please edit your post so it uses code tags - select the code then press the <> button on the right under format.
You should not use doubles in a for loop like that - it will almost certainly fail. Use integer types in loops then cast them to double inside the loop.
Thanks for your help and your are right. i did not know how to change y so the "forloop" with x will run until y is zero. I thought because it was inside another loop it would be forced to loop again. I need to intialize x to one for every outside loop. Thanks Again!!