Advertisement
MilaDimitrovaa

Нечетни от 0 до 100

Sep 26th, 2020
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. public static void main(String[] args) {
  2.         Scanner scan = new Scanner(System.in);
  3.        
  4.         for (int i = 0 ; i < 100 ; i++) {
  5.             if ( i % 2 == 1) {
  6.           System.out.println(i);
  7.                
  8.  
  9.     }
  10.  
  11. }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement