Dashboard
Problems
Roadmap
Leaderboard
Sign Up
Log In
Problems
easy
Print Odd Numbers from 1 to N
2 Koda Coins
⏱ Set Timer
Description
Examples
Editorial
Print Odd Numbers from 1 to N
easy
⏱ 2s limit
💾 64 MB
Description
Given an integer N, print all odd integers from 1 to N, space-separated.
Input Format
A single integer N.
Output Format
Print odd integers from 1 to N separated by a single space.
Constraints
1 <= N <= 1000
Python 3
C++17
C
Java
JavaScript
Run
Submit
Output
Verdict
▲ Expand