Computer Science Canada addition help |
| Author: | ruscutie [ Thu Jan 25, 2007 7:59 pm ] | ||
| Post subject: | addition help | ||
i'm trying to make a code which calculates the sum of 1+2+3+4+5+6.....+98+99+100... i tried 2 make the program but it doesn't work... plzz tell me what is my mistake...
|
|||
| Author: | CodeMonkey2000 [ Thu Jan 25, 2007 8:04 pm ] |
| Post subject: | RE:addition help |
num should equal zero, and num shoud be increasing by i. In other words, num equals num plus i. |
|
| Author: | ruscutie [ Thu Jan 25, 2007 8:13 pm ] |
| Post subject: | Re: addition help |
thnx man |
|
| Author: | Robert [ Thu Jan 25, 2007 8:21 pm ] | ||
| Post subject: | RE:addition help | ||
And in Turing...
|
|||
| Author: | zylum [ Thu Jan 25, 2007 9:56 pm ] | ||
| Post subject: | RE:addition help | ||
or
where n is the ending number |
|||
| Author: | ruscutie [ Thu Jan 25, 2007 10:18 pm ] |
| Post subject: | RE:addition help |
thnx guyzz:-) |
|