Răspuns:
#include <iostream>
using namespace std;
int main()
{int n,r,a1,a2,a3,a4;
a1=4;
r=23;
a1=a1;
a2=a1+r;
a3=a1+2*r;
a4=a1+3*r;
cout<<"a1= "<<a1<<endl;
cout<<"a2= "<<a2<<endl;
cout<<"a3= "<<a3<<endl;
cout<<"a4= "<<a4<<endl;
}
Poftim! Sper sa te ajute!