Public feed #531388

Unnamed

public ruby v1 · immutable
Raw Edit
·published 2007-06-02 13:51 UTC
rendered paste body
command = ''lineWidth = 50putsputs( 'Welcome to Sun Bank.'.center(lineWidth))putsputs( 'Please select an option by typing in a number.'.center(lineWidth))putsputs '1  Withdraw'puts '2  Deposit'puts '3  Counterfeit'puts '4  Exit'putsvar1 = gets.chompif var1 == '1'	puts	puts 'a'	putselsif var1 == '2'	puts	puts 'b'	putselsif var1 == '3'	puts	puts 'c'	putselsif var1 == '4'	puts	puts 'Goodbye!'	putselse	puts	puts 'Error - Wrong choice.'	putsend