Icon Créer jeu Créer jeu

Número Aleatorio en Java

Compléter

(29)
Generar un número aleatorio o al azar y compararlo con un número ingresado.

Téléchargez la version pour jouer sur papier

Âge recommandé: 17 ans
62 fois fait

Créé par

Guatemala

Top 10 résultats

  1. 1
    Wendy González 5SB
    Wendy González 5SB
    00:58
    temps
    100
    but
  2. 2
    01:02
    temps
    100
    but
  3. 3
    Pamela López
    Pamela López
    01:19
    temps
    100
    but
  4. 4
    Mynor Rivas 5B
    Mynor Rivas 5B
    01:19
    temps
    100
    but
  5. 5
    01:43
    temps
    100
    but
  6. 6
    Eunice Ajpop 5BC
    Eunice Ajpop 5BC
    02:00
    temps
    100
    but
  7. 7
    02:08
    temps
    100
    but
  8. 8
    02:12
    temps
    100
    but
  9. 9
    Katherine Palencia
    Katherine Palencia
    02:34
    temps
    100
    but
  10. 10
    Maria Matheu 5b
    Maria Matheu 5b
    02:47
    temps
    100
    but
Voulez-vous apparaître dans le Top 10 de ce jeu? pour vous identifier.
Créez votre propre jeu gratuite à partir de notre créateur de jeu
Affrontez vos amis pour voir qui obtient le meilleur score dans ce jeu

Top Jeux

  1. temps
    but
  1. temps
    but
temps
but
temps
but
 
game-icon

Compléter

Número Aleatorio en JavaVersion en ligne

Generar un número aleatorio o al azar y compararlo con un número ingresado.

par Isaías A. Cuá Dubón
1

. . Scanner ;
Numero_Aleatorio {

void main ( String [ ] args ) {
/ / Creamos el objeto Scanner llamado sc
Scanner = Scanner ( System . in ) ;
/ / Declaramos nuestras variables de uso
nombre ;
n ;
int ni ;
/ / Aquí se genera el número aleatorio
n = ( ( int ) ( Math . random ( ) * 10 + 1 ) ) ;
. out . println ( " Ingrese su nombre : " ) ;
nombre = sc . ( ) ;
System . out . ( " Adivina el número generado entre 1 y 10 : " ) ;
ni = sc . ( ) ;
/ / Esta es la estructura que evalúa los números aleatorios
( n = = ni ) {
System . . println ( " Felicidades ! ! " + nombre + " acertaste " ) ;
}
{
. out . println ( + " Lo sentimos el número generado es : " + n ) ;
}
. out . println ( " Fin del programa " ) ;
System . out . ( " Programa desarrollado por : Prof . Isaías A . Cuá Dubón " ) ;
}

}

educaplay suscripción