#include <iostream>
int main() {
int count = 0;
int number = 1;
std::cout << "Первые сто чисел, кратных трём:" << std::endl;
while (count < 100) {
if (number % 3 == 0) {
std::cout << number << " ";
count++;
}
number++;
return 0;
#include <iostream>
int main() {
int count = 0;
int number = 1;
std::cout << "Первые сто чисел, кратных трём:" << std::endl;
while (count < 100) {
if (number % 3 == 0) {
std::cout << number << " ";
count++;
}
number++;
}
return 0;
}