Computer Science Canada

anoter example problem!

Author:  cutiegirl_14_16 [ Thu Mar 06, 2003 9:19 pm ]
Post subject:  anoter example problem!

where

loop
put "Enter a number. To end the program type -999 - " ..
get num

count:=count+1
total:=num+total
exit when num=-999
end loop
put total

this works, but how do u make it so that the total doesn't add the -999 @ the end?

Author:  cutiegirl_14_16 [ Thu Mar 06, 2003 9:24 pm ]
Post subject: 

NEVER MIND!!!!!!!! I got it...!!!!!!!!


: