monkeyslut45

Кирилл Деменев

Oct 29th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner in = new Scanner(System.in);
  7.  
  8.     for (int i = 0; i <= 10000; i++) {
  9.         if ((i % 10 == 3 || i % 100 / 10 == 3 || i % 1000 / 100 == 3 || i % 10000 / 1000 == 3) && i % 5 != 0) {
  10.             System.out.println(i);
  11.         }
  12.       }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment