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