addition of two numbers in java
import java.util.Scanner;
public class AddTwoNumbers
{
public static void main(String[] args)
{
int a, b, c;
System.out.println("Please enter two integers to add : ");
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
c = a + b;
System.out.println("Sum of two numbers = " + c);
sc.close();
}
}