FizzBuzz Go Program with Shell Script

Files

Usage

Running the Script

The run_fizzbuzz.sh script allows you to run the FizzBuzz program without manually running Go commands.

./run_fizzbuzz.sh <number>

Replace <number> with an integer.

Example

./run_fizzbuzz.sh 15

Output:

1
2
Bob
4
Cat
Bob
7
8
Bob
Cat
11
Bob
13
14
BobCat

Installation & Setup

  1. Ensure you have Go installed.
  2. Give execution permissions to the shell script:
  3. chmod +x run_fizzbuzz.sh
  4. Run the script.