Time:01-08
CodePudding user response:
because you just input a data You to enter 9 8 7 6 5 4 3 2 1 0 Try
int a, Max=0, min=0; Do {System. The out. Printf (" please enter an integer (0) : "); a=input.nextInt(); If (a==0) break;//control exit the loop here If (maxIf (min> A) min=a; } the while (true); System. The out. Printf (" the minimum is the maximum value is: % d: % d \ n ", Max, min);
why don't you do it does not continue to circulation
Page link:https//www.codepudding.com/Backend/97862.html