-->
当前位置:首页 > 题库

PROGRAMMING:Outputs all positive integers from 1 to n

Luz5年前 (2021-05-10)题库419
This problem requires input a positive integer n, and then output all positive integers from 1 to N, each positive integer takes two bytes.
###Input format:
Enter a positive integer n.
###Output format:
Output all positive integers from 1 to n. Each positive integer takes up two bytes.
###Input example:
Here is a set of inputs. For example:
```in
five
```
###Output example:
The corresponding output is given here. For example:
```out
1 2 3 4 5
```







answer:If there is no answer, please comment
This problem is very simple, just use the for loop to successfully solve.