- #1

Saladsamurai

- 3,003

- 6

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!