Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 anoter example problem!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cutiegirl_14_16




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
cutiegirl_14_16




PostPosted: Thu Mar 06, 2003 9:24 pm   Post subject: (No subject)

NEVER MIND!!!!!!!! I got it...!!!!!!!!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: