Skip to content

Instantly share code, notes, and snippets.

@jessicaschilling
Forked from codecademydev/Magic.java
Created December 15, 2015 02:26
Show Gist options
  • Save jessicaschilling/05473d66e58500e518dd to your computer and use it in GitHub Desktop.
Save jessicaschilling/05473d66e58500e518dd to your computer and use it in GitHub Desktop.
Codecademy export
public class Magic {
public static void main(String[] args) {
// This little program does a bunch of math witchery to always return the same number no matter what myNumber is
int myNumber = 12;
int stepOne = (myNumber * myNumber);
int stepTwo = (stepOne + myNumber);
int stepThree = (stepTwo / myNumber);
int stepFour = (stepThree + 17);
int stepFive = (stepFour - myNumber);
int stepSix = (stepFive / 6);
System.out.println(stepSix);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment