0

another challenge to me, how do i write codes that will ask user to insert multiple values?

in these codes, i want users to enter their age and name age = "18" user = gets.chomp user2 = gets.chomp if user >= age puts" welcome #{user2}" end but when i run it, it only ask user to insert value once..and result to an error

18th Apr 2017, 8:19 AM
Kelvine De Danielo
Kelvine De Danielo - avatar
1 Antwort
+ 7
age = "18" name = "myname" puts "hello #{name} #{age}" end
18th Apr 2017, 11:45 AM
Art456
Art456 - avatar