fizz buzz game

 #include <iostream>

int main(){

  //brain ki gaand yha se phategi

  for(int i=0 ; i<=100 ; i++){

    std::cout<<i<<"\n";

  

  if(i%3==0){

    std::cout<<"Fizz\n";}

    else if(i%5==0){

      std::cout<<"Buzz\n";

    }

    else if(i%3==0 && i%5==0){

      std::cout<<"FizzBuzz\n";

    }

    else{

      std::cout<<i<<"\n";

    }

  }

}










Comments

Popular posts from this blog

harry potter wing selection

code for finding roots of a quadratic equation