游客 Signup | Login
中文 | En

2954 - goto语句使用III

本题目要求使用goto语句。输出从0到9共10个数字,每个数字后面有一个换行符。

Input

本题无输入。

Output

输出从0到9共10个数字,每个数字一行。

Examples

Input

no input needed

Output

0
1
2
3
4
5
6
7
8
9

Solution C

#include<stdio.h>

int main()
{
	int i;
	i=0;
	L1:
		printf("%d\n",i);
	    i=i+1;
	if(i<10){
		goto L1;
	}
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题