Skip to content

s-bridges/Hacktoberfest_Fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Hacktoberfest_Fizzbuzz

Hacktoberfest FizzBuzz Challenge

This challenge is meant to help developers solve the FizzBuzz challenge in their respective programming language, as well as teach new GitHub users how to make their first Pull Request in honor of Hacktoberfest's 2019 campaign.

Problem

Write a short program that prints each number from 1 to 100 on a new line. For each multiple of 3, print "Rat" instead of the number. For each multiple of 5, print "Ghost" instead of the number. For numbers which are multiples of both 3 and 5, print "Spider" instead of the number.

Write a solution (or reduce an existing one) so it has as few characters as possible.

How to Create a Pull Request in GitHub

  • Click on the fork in the top right corner of this repo.
  • Clone fork to your machine.
    git clone https://github.com/${username}/Hacktoberfest_Fizzbuzz
  • Create a branch titled your programming language.
    git checkout -b python or git checkout -b cpp
  • Create a new file in the challenge folder titled with your username.language extension.
    s-bridges.py or s-bridges.cpp
  • Include your github link in the top above your code.
  • Optional: Open CONTRIBUTING.MD add your name, github link, and any information you feel like sharing.
  • Add and commit your changes
    git add .
    git commit -m 'I wrote this in C#'
    git push origin branch-name
  • Create a new pull request from your published forked repositiory.
    Click new pull request at top of repo
  • Wait for approval :)