Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ConsoleInput {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.print("Input i = ");
- int i = scanner.nextInt();
- System.out.print("Input j = ");
- int j = scanner.nextInt();
- scanner.close();
- System.out.println("i+j=" + (i + j));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement