You are viewing a single comment's thread. Return to all comments →
using namespace std; int main(){ for(int i=1 ; i<=100 ; i++){ if(i%3==0 && i%5==0){ cout<<"FizzBuzz"<
else if(i%3==0){ cout<<"Fizz"<<endl; } else{cout<<i<<endl;}
} return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
FizzBuzz
You are viewing a single comment's thread. Return to all comments →
include
using namespace std; int main(){ for(int i=1 ; i<=100 ; i++){ if(i%3==0 && i%5==0){ cout<<"FizzBuzz"<
} return 0; }