Skip to content

wguynes/fizzbuzz-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Bats: Bash Automated Testing System

https://github.com/sstephenson/bats

As a fizzbuzz user
I want a standalone shell script that will identify multiples of 3 and 5
So that I can output alternative data to my users

  • Write a script called "fizzbuzz.sh" takes in integer as an input.
  • If the input is a multiple of 3, print "fizz".
  • If the input is a multiple of 5, print "buzz".
  • If the input is a multiple of both 3 and 5, print "fizzbuzz" instead.
  • If the input is not a multiple of 3 or 5, print the input number.
  • If the input is zero or negative, print nothing.

About

FizzBuzz kata for Bash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published