Advertisement
MilaDimitrovaa

от 100 до 1000 четни

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