_______________________________________________________________
I had problems when I ran your code. I fixed it by giving your variables a value of 0 when it is being declared. The computer automatically assignes each variable some number so the calculation was wrong. also add this to the end...