Skip to content

Instantly share code, notes, and snippets.

["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"]
["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"]
["Strive not to be a success, but rather to be of value.", "Albert Einstein"]
["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"]
["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"]
["You miss 100% of the shots you don’t take.", "Wayne Gretzky"]
["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"]
["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"]
["Every strike brings me closer to the next home run.", "Babe Ruth"]
["Definiteness of purpose is the starting point of all achievement.", "W.
"""
### Problem
Given an even number n, write an algorithem that returns how many times we can divide it by 2 before it reaches an odd number
### Example
<pre class="no-run">
input:
64
output:
#A review of Games, Learning, and Programing
[TOC]
#Abstract
Games are good at teaching players a lot of things. Noting this undeniable association between games and learning, in addition to the prevalence of games in our lives; educators have thought out to harness the power of games in learning.
This Summary is a preparation and future reference, for designing a game that teaches algorithmic thinking in and introduction to computer science course at the German University in Cairo.