fizz1: FizzBuzz

View source: R/fizz.R

fizz1R Documentation

FizzBuzz

Description

Solutions to FizzBuzz test. fizz1 assigns values to vector subsets, while fizz2 assigns values to vector elements one by one.

Usage

fizz1()

fizz2()

Value

String vector containing numbers, Fizz, Buzz, and FizzBuzz.

Note

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⁠


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.