Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class bozhinova {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.println("Въведете вашите числа: ");
- for (int i = 1; i <= 5000 ; i++ ) {
- int n = sc.nextInt();
- if (n % 2 == 0) {
- System.out.print(n+" ");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment