Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication62;
- public class JavaApplication62 {
- public static void main(String[] args) {
- int liczba[] = new int[10];
- for (int i = 0; i < liczba.length; i++) {
- liczba[i] = i + 1;
- }
- for (int i = 0; i < liczba.length; i++) {
- if (liczba[i] % 3 == 0) {
- System.out.println(liczba[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement