Write a program that Will prompt a user to enter his/her name and number.use a while loop that will display the user name times the entered number

1 answer

display "enter name, number: "
read s
(name,num) = split(",",s)
while (num-- > 0) {
  display name
}

use the language of your choice