#include <iostream>
#include<vector>
using namespace std;
int main() {
int h,f,j;
cin>>h>>f>>j;
vector<int> v;
while(v.size()<j){
v.push_back(h);
h=h+f;
}
for(int i=0;i<v.size();i++){
cout<<v[i]<<" ";
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: