-
-
Save codecademydev/2b4b26f5c87fc421799e904f3e7ea5ad to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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