18 lines
404 B
Java
18 lines
404 B
Java
import java.util.Scanner;
|
|
|
|
public class P19 {
|
|
public static void main(String[] args) {
|
|
Scanner scanner = new Scanner(System.in);
|
|
|
|
System.out.print("Enter the first number: ");
|
|
int a = scanner.nextInt();
|
|
|
|
System.out.print("Enter the second number: ");
|
|
int b = scanner.nextInt();
|
|
|
|
System.out.println("Sum: " + (a + b));
|
|
|
|
scanner.close();
|
|
}
|
|
}
|