import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
Scanner numvik= new Scanner (System.in);
// when we need user input we write this to load scanner
System.out.println("write 1st number");
int a= numvik.nextInt();
//ab yha pr next int isliye likha ab user dusra input dega agr character hota toh next char likhte
System.out.println("write a 2nd number");
int b = numvik.nextInt();
System.out.print(a+b);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: