#15. n以内的整数
n以内的整数
用户输入一个数字n,程序需要输出从0到n之间的所有数字。格式为每5个数换一行,数字之间用逗号隔开。
例子1:
输入:6
输出:
0,1,2,3,4
5,6
例子2:
输入:3
输出:
0,1,2,3
用户输入一个数字n,程序需要输出从0到n之间的所有数字。格式为每5个数换一行,数字之间用逗号隔开。
例子1:
输入:6
输出:
0,1,2,3,4
5,6
例子2:
输入:3
输出:
0,1,2,3
By signing up a Lin Jian universal account, you can submit code and join discussions in all online judging services provided by us.