Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def prompt
- print ">> "
- end
- puts "welcome to the weight-calc 3000! Enter you weight below!"
- prompt; weight = Integer(gets.chomp())
- if weight > 100 && weight < 300
- puts "your healthy!"
- elsif weight > 300
- puts "your fat"
- elsif weight < 100
- puts "your skinny"
- elsif weight == 150
- puts "your perfect"
- end
- if weight > 100 && weight < 300
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement