#23606: ans


ce5324 (伃)

學校 : 臺北市私立延平高級中學
編號 : 128513
來源 : [219.70.166.115]
最後登入時間 :
2021-06-06 21:44:53
b971. 等差數列 -- 板橋高中教學題 | From: [111.235.252.96] | 發表日期 : 2020-12-02 17:10

#include <bits/stdc++.h> 

using namespace std;

int main()

{

int a1,an,d;

while(cin>>a1>>an>>d)

{

int s=(an-a1)/d;

for(int i=0;i<=s;i++)cout<<a1+i*d<<" ";

cout<<endl;

}

}

 
ZeroJudge Forum