extras: add P16-P23, P25
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
17
P19.java
Normal file
17
P19.java
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user