JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int choice = scanner.nextInt();
String[] categories = {"PCs", "Notebooks", "Tablets", "Phones", "Аccessories"};
if(choice<=4){
if(choice == 0){
System.out.println("PCs");
}else if (choice == 1){
System .out.println("Notebooks");
}else if (choice == 2){
System .out.println("Tablets");
}else if (choice == 3){
System .out.println("Phones");
}else if(choice ==4) {
System .out.println("Accessories");
}
}
//complete the code
try {
if(choice >= 5)
{
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run