19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/convert_currency.rb', line 19
def gen
puts "Enter your Name"
name1 = gets.chomp
puts "Enter you Age"
age = gets.chomp
puts "Question Time"
puts
puts "You are a computer Freak? type only (yes) or (no)"
ans = gets.chomp
case ans.downcase
when "yes"
puts "Good you are in my TEAM..."
when "no"
puts "Intresting then why you are HERE...."
else
puts "Your entered other than yes or no
Any way"
end
puts
puts "your Details with some Extra Spice"
puts
puts "Your Gooooooood name - #{name1} and your age is #{age} + Some Extra SPICE"
end
|