LazySamir / fizzbuzz-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FizzBuzz Go

A classic FizzBuzz application written in Go. This application prints numbers 1 to 100 but with a twist.

Multiples of 3 are replaced with "Fizz"

Multiples of 5 are replaced with "Buzz"

Multiples of 15 are replaced with "FizzBuzz"

Usage instructions

Download

$ git clone git@github.com:LazySamir/fizzbuzz-go.git
$ cd fizzbuzz-go

Run

Run the binary file: $ ./fizzbuzz

Alternative, run the Go file: $ go run fizzbuzz.go

Test

$ go test

About


Languages

Language:Go 100.0%