Top Categories
PHP Challenge #3: Code FIZZBUZZ Program in PHP | PHP Tutorial in Hindi in 2020 #35
- Category:
- Sub Category:
Welcome, Code FizzBuzz Program in PHP. What is FIZZ BUZZ CHALLENGE in PHP? The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates who can't seem to program their way out of a wet paper bag. Your challenge is to loop through
Welcome, Code FizzBuzz Program in PHP. What is FIZZ BUZZ CHALLENGE in PHP? The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates who can't seem to program their way out of a wet paper bag. Your challenge is to loop through the numbers 1 to 100. If a number is a multiple of 3 then output FIZZ instead of the number. If a number is a multiple of 5 then output BUZZ instead of the number. If a number is a multiple of both 3 and 5 then output FIZZ BUZZ instead of the number. Your output will look something like this: 1 2 FIZZ 4 BUZZ FIZZ 7 8 FIZZ BUZZ 11 FIZZ 13 14 FIZZ BUZZ 16 17 FIZZ 19 BUZZ ...etc.