[KSH] Creating automatic variable from read input

view story

http://www.unix.com – Hello there, I am posting to seek help with a KSH script, I am making a simple calculation program where the user can enter as many numbers as they like, I am getting their input using the read command, however I am not sure how to repeat doing this and storing the input in to new variables until the user wants the program to calculate. Here is what I have so far Code: #!/bin/ksh echo "Please input two numbers" echo echo "Please input value 1: " read x1 echo echo "Please input value 2: " read x2 echo "The answer is: " echo ech (HowTos)