#include <iostream> using namespace std; int main() { int i = 0; for (i = 1; i < 10; i++) { if (i % 3 == 0) { printf("%d\n", i); } } }