EtashGuha's picture
Add files using upload-large-folder tool
6342472 verified
|
raw
history blame
922 Bytes

even-from-end-1

Problem Description

Problem Description

Given a list of integers, find and display all even numbers from the end of the list.

Input Format

Each line of input begins with an integer N indicating the number of integer n that follow which comprises a list.

Output Format

All even numbers from the end of the list, each separated by a single space. Separate output for each test case with the newline character. Otherwise, display the words None to display

Constraints

2 ≤ N ≤ 100

-1000 ≤ n ≤ 1000

SAMPLE INPUT 5 10 25 12 4 1 3 16 28 100

SAMPLE OUTPUT 4 12 10 100 28 16

Contest Information

  • Contest ID: 0
  • Problem Index:
  • Points: 0.0
  • Rating: 0
  • Tags: None
  • Time Limit: None seconds
  • Memory Limit: 0 bytes

Task

Solve this competitive programming problem. Provide a complete solution that handles all the given constraints and edge cases.