

import java.io.*;
public class Add
{
public static void main(String args[])throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter first number:");
int a=Integer.parseInt(in.readLine());
System.out.println("Enter second number:");
int b=Integer.parseInt(in.readLine());
System.out.println("Sum of two numbers is : "+(a+b));
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.