Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int N;
- cin>>N;
- if ((N%2==0) && (N%3==0)){
- cout<<"fizzbuzz";}
- else{
- if (N%2==0){
- cout<<"fizz";}
- else
- if(N%3==0){
- cout<<"buzz";}}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement