[ create a new paste ] login | about

Link: http://codepad.org/8sP9Lc4P    [ raw code | output | fork ]

Ruby, pasted on May 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
start = ''
while start == ''
  puts 'Ciao nipote da quanto tempo? come stai?'
  imput=gets.chomp
  while imput == imput.downcase 
    puts 'PARLA NIPOTE NON TI HO CAPITO'
    imput=gets.chomp
    while imput== imput.upcase
      puts 'NO! NON DAL 1938!!!'
      imput=gets.chomp
      if imput== 'CIAO NONNA'
        puts 'CIAO NIPOTE TORNA PRESTO!!'
        break
      end
    end
  end
end


Output:
1
2
Line 4: private method `chomp' called for nil:NilClass (NoMethodError)
Ciao nipote da quanto tempo? come stai?


Create a new paste based on this one


Comments: