标签:最小 form string 最大 ring next min 保存 demo1
import java.util.*;
import javafx.scene.transform.Scale;
public class Demo11 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int min, max;
System.out.println("请输入打擂的数:");
int num = input.nextInt();
min = num;
max = num;
do {
System.out.println("请输入打擂的数:");
num = input.nextInt();
if (num<min) {
min = num;
}
if (num>max) {
max = num;
}
} while (num != 0);
System.out.println("min:" + min + "\t" + "max:" + max);
System.out.println("程序结束");
}
}
标签:最小 form string 最大 ring next min 保存 demo1
原文地址:https://www.cnblogs.com/ztzz/p/12884274.html