import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
System.out.println("Choose a category: \n1. Desktop Computer \n2. Laptop \n3. Tablet \n4. Printer");
int c;
c=in.nextInt();
if (c==1){
System.out.println("You have chosen Desktop Computer for game console");
}
else if (c==2){
System.out.println("You have chosen Laptop for game console");
}
else if (c==3){
System.out.println("You have chosen Tablet for game console");
}
else if (c==4){
System.out.println("You have chosen Printer for game console");
}
}
}
Comments
Leave a comment