Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.println("Where to?");
- int num1 = Integer.valueOf(scanner.nextLine());
- System.out.println("Where from?");
- int num2 = Integer.valueOf(scanner.nextLine());
- for (int i = num2; i <= num1; i++) {
- System.out.println(i);
- }
- }
- }
Add Comment
Please, Sign In to add comment