Guest User

Untitled

a guest
Aug 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. puts"ACH HALLO, JUNGE"
  2. antwort = #Da hier alles einsetzbar ist
  3.  
  4. while antwort != "BYE"
  5. antwort = gets.chomp
  6. while antwort != antwort.upcase
  7. puts "WAS?KOENNTEST DU BITTE LAUTER REDEN?"
  8. antwort = gets.chomp
  9. end
  10. jahr = rand(21) + 1930
  11. if antwort != "BYE" #0hne das if sagt die nach BYE noch was, dass wollen wir ja nicht
  12. puts "NEIN, NICHT SEIT #{jahr.to_s }."
  13. end
  14.  
  15. end
Add Comment
Please, Sign In to add comment