fun math


Submit solution

Points: 35 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem types
Allowed languages
Java 19, Java 8

題目說明

請設計一個程式,使用者可以輸入三個數字,分別代表:

起始值、間隔距離、幾個數

之後輸出結果

輸入限制: 整數,起始值與間隔距離可為負,輸出必大於等於一個數

輸入

三整數

輸出

依題目說明方式輸出

測資0 輸入

1 2 3

測資0 輸出

1 3 5

測資1 輸入

-1 -3 4

測資1 輸出

-1 -4 -7 -10

測資2 輸入

1 0 10

測資2 輸出

1 1 1 1 1 1 1 1 1 1

Comments

There are no comments at the moment.