mouredev/Weekly-Challenge-2022-Kotlin

Solución reto #1 en C++

raidelypaulino opened this issue · 1 comments

#include

using namespace std;

int main()
{

for(int i = 1; i <= 100; i++)
{
    cout << i << endl;

    if(i % 3 == 0)
        cout << "Fizz" << endl;

    if(i % 5 == 0)
        cout << "buzz" << endl;

    if(i % 3 == 0 && i % 5 == 0)
        cout << "Fizzbuzz" << endl;
}

return 0;

}

Así lo solucione en C++