#include <iostream> using namespace std; int main(){ int i=1; for(;i<=100;i=i+1){ if(i%3==0) cout<<i<<" "; } }