• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

s-bridges/Hacktoberfest_Fizzbuzz: Hacktoberfest FizzBuzz Challenge

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

s-bridges/Hacktoberfest_Fizzbuzz

开源软件地址(OpenSource Url):

https://github.com/s-bridges/Hacktoberfest_Fizzbuzz

开源编程语言(OpenSource Language):

C++ 28.0%

开源软件介绍(OpenSource Introduction):

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 :)



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap