Advertisement
Edgu

Untitled

Jan 11th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.15 KB | None | 0 0
  1. class yourClass {
  2.     public static void main(String[] args) {   
  3.         for (int i = -5; i <= 5; i++) {
  4.             if (i % 2 != 0) System.out.print(i + " ");
  5.         }
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement