Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

SOURCE CODE:

import java.util.Scanner;
class Addition
{
public static void main(String[] args) {
int x,y,z;

System.out.println("Enter to integers to be added");


Scanner in =new Scanner(System.in);

x=in.nextInt();
y=in.nextInt();
z=x+y;

System.out.println("Sum of the integers="+z);

}
}

OUTPUT:

You might also like