Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created Aug 12, 2019
Embed
What would you like to do?
Codecademy export
public class Magic {
public static void main(String[] args) {
int myNumber = 46341;
// We will refer to myNumber as the otiginal number
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