Mariyan17320

Bozhinova упражнение

May 27th, 2020
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. import java.util.Scanner;
  2. class bozhinova {
  3.     public static void main(String[] args) {
  4.         Scanner sc = new Scanner(System.in);
  5.         System.out.println("Въведете вашите числа: ");
  6.  
  7.         for (int i = 1; i <= 5000 ; i++ ) {
  8.  
  9.             int n = sc.nextInt();
  10.             if (n % 2 == 0) {
  11.                 System.out.print(n+" ");
  12.             }
  13.         }
  14.     }
  15. }
Add Comment
Please, Sign In to add comment