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

Username:   Password: 
 RegisterRegister   
 NEED some help with....
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fatalsh0ts




PostPosted: Thu Mar 12, 2009 7:49 pm   Post subject: NEED some help with....

heres the problem

2. Make a loop which would continuously display the number system starting from 0 and continuing ?forever? (until the user closes the window)
E.g.
0
1
2
3
4
5
etc... cant seem to solve this problem
code:

var numb1, numb2, numb3 : int
const x := 1
numb1 := 0 + x
numb2 := numb1 + x
numb3 := numb1 + 2*x
loop
    put "0"
    put numb1
    put numb2
    put numb3
end loop
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Mar 12, 2009 7:53 pm   Post subject: RE:NEED some help with....

please use code tags.

Hint: the question asks to only display the numbers; you don't need to keep all of them in memory.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Fatalsh0ts




PostPosted: Thu Mar 12, 2009 8:01 pm   Post subject: RE:NEED some help with....

srry i still dont get it... and what are code tags
Tony




PostPosted: Thu Mar 12, 2009 8:14 pm   Post subject: Re: NEED some help with....

[code="turing"][/code]

what is it, that you are having problems with understanding, for this problem?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Fatalsh0ts




PostPosted: Thu Mar 12, 2009 8:16 pm   Post subject: RE:NEED some help with....

nvm got it thnx anways
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  [ 5 Posts ]
Jump to:   


Style:  
Search: