#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=3;i<=n;i+=3)
cout<<i<<' ';
return 0;
}
int n,i;
for(i=0;i<n;i++)
cout<<i*3<<' ';
Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=3;i<=n;i+=3)
cout<<i<<' ';
return 0;
}
#include<iostream>
using namespace std;
int main(){
int n,i;
cin>>n;
for(i=0;i<n;i++)
cout<<i*3<<' ';
return 0;
}
Nota :