Dashboard
Problems
Roadmap
Leaderboard
Sign Up
Log In
Problems
easy
Print Numbers from 1 to N
2 Koda Coins
⏱ Set Timer
Description
Examples
Editorial
Print Numbers from 1 to N
easy
⏱ 2s limit
💾 64 MB
Description
Given an integer N, print all integers from 1 to N space-separated.
Input Format
A single integer N.
Output Format
Print 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