KnowledgeVault
Welcome to KnowledgeVault!
KnowledgeVault
Welcome to KnowledgeVault!
KnowledgeVault
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KnowledgeVault


 
HomeLatest imagesIncredible ammount of failure code. 32132110RegisterLog in

 

 Incredible ammount of failure code.

Go down 
AuthorMessage
IllusionSlayer
KnowledgeVault Owner
KnowledgeVault Owner



Posts : 900
Join date : 2009-07-09
Age : 29
Location : Look behind you.

Incredible ammount of failure code. Empty
PostSubject: Incredible ammount of failure code.   Incredible ammount of failure code. EmptyMon Aug 17, 2009 9:17 pm

It works but it has WAAAAYYYYY to many lines of code.


Code:
x = 1
puts " Enter your age: "
x = gets.chomp
sleep 1
case x
when  "18"
  puts "You are alive and cannot do any of the following:"
  puts " *Smoke"
puts " *Become President"
 sleep 5
$end
when  "19"
  puts "You are alive and cannot do any of the following:"
  puts " *Drink"
puts " *Become President"
 sleep 5
$end
when  "20"
  puts "You are alive and cannot do any of the following:"
  puts " *Drink"
puts " *Become President"
 sleep 5
$end
when "16" then
  puts "If you a pregnant you can get married in georgia."
 sleep 5
$end
when "21" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "22" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "23" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "24" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "25" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "26" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "27" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "28" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "29" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "30" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "31" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "32" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "33" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when "34" then
  puts " You can drink,drive, and get married. Not in that order though."
 sleep 5
$end

when  "35" then
  puts "You can run for president now."
 sleep 5
$end
 else
puts "You can do everything!"
 sleep 5
end
 sleep 5
Back to top Go down
https://knowledgevault.darkbb.com
 
Incredible ammount of failure code.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
KnowledgeVault :: Computers :: Programming :: Ruby-
Jump to: