- #1
Saladsamurai
- 3,020
- 7
This is so easy I am sure...but I have no idea how to look it up.
I want to execute a loop from i = 1 to N
During each iteration I want to prompt the user for the i-th input. Let's say, I want to ask for
x1, x2, x3, ..., xN.
I should be able to write something like:
But the '&' does not seem to be the proper way to do this...
Anyone know this one?
Thanks!
I want to execute a loop from i = 1 to N
During each iteration I want to prompt the user for the i-th input. Let's say, I want to ask for
x1, x2, x3, ..., xN.
I should be able to write something like:
Code:
for i:N
x(i) = input(' Enter value of x' & i)
next
But the '&' does not seem to be the proper way to do this...
Anyone know this one?
Thanks!