Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nbr_cache = rand(100)
- nbr_entre = -1
- while (nbr_entre != nbr_cache)
- puts "Entrez un nombre... "
- nbr_entre = gets.chomp.to_i
- if (nbr_cache > nbr_entre)
- then puts "C'est plus grand !"
- elsif (nbr_cache < nbr_entre)
- puts "C'est plus petit !"
- else
- puts "Bravo !"
- end
- end
Add Comment
Please, Sign In to add comment