#include <iostream>
using namespace std;
int main() {
int i;
int n;
cin>>n;
int x=4; //starting
for (i=1 ; i<=n ; i++) //loop start
{ cout<<x<<" "; //print
x = x + 3; //add value to the i that we got by loops
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: