Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- for (int i = 0; i <= 10000; i++) {
- if ((i % 10 == 3 || i % 100 / 10 == 3 || i % 1000 / 100 == 3 || i % 10000 / 1000 == 3) && i % 5 != 0) {
- System.out.println(i);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment