Description Usage Arguments Value References Examples
This function calculates fizzbuzz as is often asked in interviews. This gives interviewees the alternative answer of 'I use fizzbuzzR::fizzbuzz() with standard options'
1 |
start |
The start of the for loop |
end |
Tast number of the for loop |
step |
The step size of the for loop |
mod1 |
mod1 is the number replaced with fizz |
mod2 |
mod2 is the number replaced by Buzz |
Fizzbuzz simply prints the numbers, replaced with fizz/buzz as required, to the screen.
[wiki]https://en.wikipedia.org/wiki/Fizz_buzz
1 2 3 4 5 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
fizzbuzz()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.