Skip to content

Instantly share code, notes, and snippets.

@HavishNetla
Last active July 8, 2020 22:21
Show Gist options
  • Save HavishNetla/8e02a74a387307a94f78d9807b68f50d to your computer and use it in GitHub Desktop.
Save HavishNetla/8e02a74a387307a94f78d9807b68f50d to your computer and use it in GitHub Desktop.

Welcome to MDHacks Puzzles!

MDHacks has provided our begenir programmers with puzzles to complete and compete for prizes. Every time you complete a puzzle, submit your answer here and view your and your competitions progress here. Once you submit an answer check the leaderboard to see if you got it right. Good luck!

Some notes before you begin

  1. You can use any text based programming language
  2. When you submit don't worry about formatting or comments

Puzzle 1

Print out “Hello MDHacks” to the console

Puzzle 2

Print all the numbers from 1 to 100 into the console

Puzzle 3

Print all the even numbers from 1 to 100 into the console

Puzzle 4

Given an input of someone's name, print out a greeting

Example:

Enter a name: Bob
Hello Bob!

Puzzle 5

Convert these strings that have random upper case and lowercase letters into a string that has only lower case letters

Example: MdHaCks -> mdhacks

Puzzle 6

Given a range as an input, print all the numbers in between that range

Puzzle 7

Find the LCM of 2 given numbers

Puzzle 8

Find the GCF of 2 given numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment