import java.util.*;
public class program{
public static void main(String[] args){
Scanner sc = new Scanner(System.int);
int opc;
System.out.println("escoje una opcion: \n comer,\n dormir, \n jugar, \n brincar, \n cerrar");
opc = sc.nextInt();
switch(opc){
case 1:
System.out.println("el verbo comer - eat \n I like to eat");
break;
case 2:
System.out.println("el verbo dormir - sleep \n I like to sleep");
break;
case 3:
System.out.println("el verbo jugar - play \n He plays basketball");
break;
case 4:
System.out.println("el verbo brincar - jump \n I like to jump");
break;
case 5:
System.out.println("el verbo cerrar - close \n I have to close the door");
break;
default:
System.out.println("La opcion que marcaste es incorrecta");
break;
}
}
}
No hay comentarios:
Publicar un comentario