/ Published in: Ruby

como poner usuario y clave
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
usuario_correcto = "er-cico" clave_correcta = "granada" puts "Introduce el nombre de usuario" usuario = gets.chomp while (usuario != usuario_correcto)do puts "Usuario incorrecto" usuario = gets.chomp #teclado end puts " Ahora introduce la clave" clave = gets.chomp while (clave != clave_correcta)do puts " clave incorrecta" clave = gets.chomp #teclado end puts "Bienvenido"
Comments
