c++17
#include <iostream>
using namespace std;
int main() {
size_t total = 0;
for(size_t i = 3; i < 13; ++i) {
if (i % 3 > 0) {
cout << i << " ";
++total;
}
cout << "\n" << total;
return 0;
c++17
#include <iostream>
using namespace std;
int main() {
size_t total = 0;
for(size_t i = 3; i < 13; ++i) {
if (i % 3 > 0) {
cout << i << " ";
++total;
}
}
cout << "\n" << total;
return 0;
}