Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int[] naoDivisiveisPor5 = new int[99];
- for (int contador = 1; contador < 100; contador++) {
- if (contador % 5 == 0) {
- continue;
- }
- naoDivisiveisPor5[contador-1] = contador;
- System.out.print(naoDivisiveisPor5[contador-1] + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement