input number lets u input that amount of numbers help
Author |
Message |
con.focus
![](http://C:\Documents and Settings\Presario\My Documents\My Received Files/fork.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
MihaiG
![](http://compsci.ca/v3/uploads/user_avatars/2070081168483773c3dead4.png)
|
Posted: 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.. |
|
|
|
|
![](images/spacer.gif) |
con.focus
![](http://C:\Documents and Settings\Presario\My Documents\My Received Files/fork.jpg)
|
Posted: Wed Jan 05, 2005 9:09 pm Post subject: (No subject) |
|
|
sry dont need no more but thx ne way elcomandante |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: 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 Eh](http://compsci.ca/v3/images/smiles/eusa_eh.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|