CodePudding user response:
Use the List, and then call sort sorting methodCodePudding user response:
Can use two variables of Max and min as the output, and then input the first number when the value is assigned to the two variables, and then compared with the two variables, the input to carry on the assignment, the final output maximum minimum value,CodePudding user response:
Two values directly initialized to the value of the first input, and then follow-up with each incoming began to compare