Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class URI1133 {
- public void run() {
- Scanner in = new Scanner(System.in);
- int x;
- int y;
- x = Integer.parseInt(in.nextLine());
- y = Integer.parseInt(in.nextLine());
- if (x > y) {
- int auxiliar = x;
- x = y;
- y = auxiliar;
- }
- for (int i = x; i < y; i++) {
- if (i % 5 == 2 || i % 5 == 3) {
- System.out.format("%d%n", i);
- }
- }
- }
- public static void main(String[] args) {
- new URI1133().run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement