Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 6, 2017 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/2b4b26f5c87fc421799e904f3e7ea5ad to your computer and use it in GitHub Desktop.
Save codecademydev/2b4b26f5c87fc421799e904f3e7ea5ad to your computer and use it in GitHub Desktop.
Codecademy export
public class Magic {
public static void main(String[] args) {
int myNumber = 10 ;
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) ;
// this code prints out the number 3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment