package test;import java.util.Scanner;public class Test { static boolean status = true; public static void main(String[] args) { while (status) { try { int age = 0; for (int i = 0; i < 5; i++) { System.out.println("请输入第" + (i + 1) ...
import java.util.Scanner;public class Tt {/** 计算公式: * 男:[66 + 1.38 x 体重(kg) + 5 x 高度(cm) - 6.8 x 年龄] x 活动量 *女:[65.5 + 9.6 x 体重(kg) + l.9 x 高度(cm) - 4.7 x 年龄] x 活动量 */private static double actRadio = 1.2;//活...
} System.out.println("你的年龄是:" + age + "岁");break;}
System.out.println(year>=90?"90后":year>=80?"80后":year>=90?"70后":"70前");
int[]arr=int[-9,4,8,-5,3,17,-29,32,2,-43];//数组Listlist=arr.ToList();//数组转换成Listlist.Max();//最大值list.Min();//最小值list.Sum()/list.Count;//平均值