public class INPUT{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num1,num2;
num1 = input.nextInt();
num2 = input.nextInt();
}
}
My question is how to take 2 inputes without declaring 2 variables.Suppose if i input some int n=2.It will prompt two times two take my input.