numbersbetween
題目說明
輸入兩整數,輸出兩數之間的所有整數,不包含輸入的兩個整數
若第二數比第一小要倒著輸出回來
注意輸出的數字之間沒有換行,可以使用System.out.print(),而非System.out.println()
輸入限制: 數字
輸入
兩整數
輸出
兩數之間的所有整數
sample input1
3 7
sample output1
4 5 6
sample input2
1 -5
sample output2
0 -1 -2 -3 -4
Comments