#include <stdio.h> int main(){ int num=0; for(int i=1;i<=100;i++) { num++; if(i%3==0) printf("%d\n",num); if(num==10) num=0; } }