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

Username:   Password: 
 RegisterRegister   
 input number lets u input that amount of numbers help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
con.focus




PostPosted: Wed Jan 05, 2005 8:00 pm   Post subject: input number lets u input that amount of numbers help

how can i input a number a tell turing to read that number
n let me inout that amount of number.

ex lets say i inout 5 turing will then let me input 5 more numbers


can u provide code or suggestions on how to do this
Sponsor
Sponsor
Sponsor
sponsor
MihaiG




PostPosted: Wed Jan 05, 2005 8:22 pm   Post subject: (No subject)

use a for loop i.e


code:

var x, a, b :i nt
put "How mayn numbers  need"
get x
for i : 1 .. x
...
end for

understand..
con.focus




PostPosted: Wed Jan 05, 2005 9:09 pm   Post subject: (No subject)

sry dont need no more but thx ne way elcomandante
Cervantes




PostPosted: Thu Jan 06, 2005 4:39 pm   Post subject: (No subject)

ELCOMANDANTE wrote:

code:

var x, a, b :i nt
put "How mayn numbers  need"
get x
for i : 1 .. x
...
end for


What's the point of the two extra variables? From what I've seen, you quite often have these extra, useless, and poorly named variables in all your programs. Eh
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  [ 4 Posts ]
Jump to:   


Style:  
Search: