How do you write a for
loop that will input 10 integer values from the user and keep track of smallest value entered? This is what I have so far. I'm so confused right now.
int value;
Scanner scan = new Scanner(System.in);
for (int i = 0; i < 10; i++) {
System.out.print("Enter 1st number:");
value = scan.nextInt();