report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Even numbers - MarisaOJ: Marisa Online Judge

Even numbers

Time limit: 1000 ms
Memory limit: 256 MB
Print all positive integers that do not exceed $n$ and divisible by $2$ in descending order. ### Input - A single line contains an integer $n$. ### Output - Print all positive integers that do not exceed $n$ and divisible by $2$ in descending order. ### Constraints - $2 \le n \le 1000$. ### Example Input: ``` 7 ``` Output: ``` 6 4 2 ```
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating 800
Solution (1) Solution