Computer Science Canada Hey guys I need help with my program. |
Author: | The Last Byte [ Thu Nov 11, 2010 4:29 pm ] | ||
Post subject: | Hey guys I need help with my program. | ||
What is it you are trying to achieve? I want to make this work, that is the goal in the end. The code that I am showing you is an algorithm. I cannot get the algorithm to work. What is the problem you are having? I get an error, and I have tried doing everything Describe what you have tried to solve this problem I Googled it, I did everything. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1.0 |
Author: | wooo00oo [ Thu Nov 11, 2010 4:39 pm ] |
Post subject: | Re: Hey guys I need help with my program. |
Using division ( / ) returns a real number. Your variables are integers. |
Author: | SNIPERDUDE [ Thu Nov 11, 2010 4:42 pm ] |
Post subject: | RE:Hey guys I need help with my program. |
for dividing with integers (if you wish to result in an integer), use div instead of / |
Author: | The Last Byte [ Thu Nov 11, 2010 4:50 pm ] |
Post subject: | RE:Hey guys I need help with my program. |
Thanks for the help guys! |