Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
Solve this problem without using any loops.
Solve this problem without writing "fizz" or "buzz" more than once.
A javascript solution: (You can try with chrome or firefox js console)
Note: I know, if(i > 100) return a; is silly but i cant figure out without it.