Q) Study the javascript given below and choose the correct option:
import java.util.*;
class xyz
{
public static void main(String args[])
{
string p;
int n;
Scanner sc=new Scanner(System.in); System.out.println("Enter the name of the shopping mall:");
p = sc.nextString(); System.out.println("Enter you choice:"); c=sc.nextInt();
switch (c) { case 1: System.out.println("KIDS ZONE");
break;
case 2:
System.out.println("ADULTS ZONE");
break;
default:
System. out. println("Something went wrong... please try again");
}
}
}
OPTIONS:
a) No Syntax Error.
b) Error ( Then, write the Program with no syntax error).
c) Runtime error.
d) None of the above.
Answers
Answered by
0
Answer:
answer will be error I think
Similar questions