i am trying to run a very simple java program. i want to write a program that reads 10 integers and that the programs finds witch one is the maximum of them. i wonder if is possible that inside a loop i can read the 10 values.
Scanner input = new Scanner (System.out);
int num1, num2, num3, num4, num5, num6, num7, num8, num9, num10;
System.out.print(" please enter the numer " +i);
===>num[i] = input.nextInt();//
i am trying to find the way to do it without using an array, since i haven t see this in school yet. any idea how to do it inside a loop? or is just no possible to do?