import java.util.Scanner;
public class s{
public static void main(String[]args){
Scanner i=new Scanner(System.in);
int p;
System.out.print("pilih : ");
p=i.nextInt();
switch(p){
case 1:
System.out.print("1");
break;
case 2:
System.out.print("2");
break;
default:
System.out.print("0");
}
}
}
Tidak ada komentar:
Posting Komentar