Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
          for(int i =1 ;i<101 ; i++)
{

   if(i % 3 == 0 && i% 5 == 0)
       print fuzzbuzz;
   else if(i % 3 == 0 )
       print fuzz;
   else if(i % 5 == 0 )
       print buzz;


 }
Posted
Updated 2-Apr-14 8:10am
v2
Comments
Sergey Alexandrovich Kryukov 2-Apr-14 16:12pm    
Very inappropriate question. Do you think people have nothing else to do? You could easily run it and see. Please, don't abuse this forum anymore. Ask only when you really need and advice.
—SA

We're not going to do your homework for you.

This is an exercise to see if YOU understand the code, not if WE understand it.
 
Share this answer
 
Comments
Schatak 2-Apr-14 14:03pm    
agreed
write your code in Visual Stuio and run the code... simple.
By the way answer is "fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz fuzz fuzzbuzz fuzz buzz fuzz fuzz buzz".
 
Share this answer
 
v2
Comments
Dave Kreskowiak 2-Apr-14 19:07pm    
You idiot. You just did the guys homework for him. Congratulations, you just help him fail because he has no clue what the code does!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900