#include<iostream>
usingnamespace std;
int addition(int a,int b,int g=0)
{
int c;
g+=1;
c=a+b*g;
return (c);
}
int main ()
{
int e,a,b,n,g;
cout<<"Pleae enter the number of numbers of the sequetial: ";
//لادخال عدد حدود المتتابعة
cin>>n;
cout<<"Pleas enter first number of the sequential: ";
//لادخال ا
cin>>a;
cout<<"Pleas enter the basic of sequential: ";
//لادخال د
cin>>b;
// الحد العام
e=addition(a,b,g);
for(int z=0;z<=n;z++)
{
cout<<e;
}
return 0;
}