I have this var:
var
UserInput : array [1..3] of string;
I'm trying to set multiple values, at once.
readln( UserInput[1], UserInput[2], UserInput[3] );
When the code runs, all the input is stored in UserInput[1]
Ex.:
Input: 10 1.5 18
Result:
UserInput[1] = 10 1.5 18
UserInput[2] = 0
UserInput[3] = 0
What should I do?