Description
This is a simple problem about printing numbers!
Give a random number and print numbers from 1 to it.
Input
The input is only one number,N(1<=N<=650000).
Output
Output the number from 1 to N.Each line should be printed only 1 number.
输入样例 1
1
输出样例 1
1
输入样例 2
5
输出样例 2
1
2
3
4
5
来源
NEEPU_ACM_2017_训练赛(1)
代码
#include <cstdio>
using namespace std;
int main(){
int i, n;
scanf("%d", &n);
for(i = 1; i <= n; i++) printf("%d\n", i);
return 0;
}