FizzBuzz Problem

The FizzBuzz problem is one of the commonly asked questions, here one has to print Fizz and Buzz upon some conditions.

πŸ“ Tasks:

/
1  
2  
Fizz  
4  
Buzz  
Fizz  
7  
8  
Fizz  
Buzz  
11  
Fizz  
13  
14  
FizzBuzz  
16  
....
....
98  
Fizz  
Buzz  
/

πŸ’‘ Hints:

  • Visit the loops chapter to understand how the loop works.

Last updated