<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-java/projects/math-magic
<In what way does your code behave incorrectly? Include ALL error messages.>
What is the best way to set myNumber equal to user input? This is my working code so far.
//prints 3 to the console
public class Magic {
public static void main(String args) {
int myNumber = 1;
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);
}
}
<do not remove the three backticks above>