fizz1 | R Documentation |
Solutions to FizzBuzz test. fizz1
assigns values to vector subsets,
while fizz2
assigns values to vector elements one by one.
fizz1()
fizz2()
String vector containing numbers, Fizz
, Buzz
, and
FizzBuzz
.
The task is to print the numbers from 1 to 100, with the following exceptions:
for multiples of three print ‘Fizz’ instead of the number
for multiples of five print ‘Buzz’
for multiples of both three and five print ‘FizzBuzz’
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.