Hello all, I have an assignment for my programming class. Quite frankly, I wouldn't be taking it if it wasn't required for my degree.
Up to this point, I took 2 classes of C++. And I was told that Java and C++ were so very similar that I wouldn't have much trouble transitioning.
Well, I'm getting an error message, and I'm not sure where the problem is.
this is my itty bitty program such as it is:
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please input a 5 digit number"); int input = in.nextInt(); int num1=0, num2=0, num3=0, num4=0, num5=0; while (input > 0) { System.out.println(input % 10); input = input /10; } } }