-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
#include <iostream>
int main() {
for (int i = 1; i <= 100; i++) {
if (i % 15 == 0) {
std::cout << "fizzbuzz" << std::endl;
}
else if (i % 3 == 0) {
std::cout << "fizz" << std::endl;
}
else if (i % 5 == 0) {
std::cout << "buzz" << std::endl;
}
else {
std::cout << i << std::endl;
}
}
return 0;
}
Metadata
Metadata
Assignees
Labels
No labels