Skip to content

Instantly share code, notes, and snippets.

package Test;
import java.util.Scanner;
public class Test1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("enter a number:");
int a = input.nextInt();
if(a == 2){