1 /** 2 * @author 冰樱梦 3 * 时间:2018年下半年 4 * 题目:求满足n^2>12000的n的最大值 5 * 6 */ 7 public class Exercise05_13 { 8 public static void main(String[] args){ 9 int i=1; 10 while(i*i*i<12000){ 11 i++; 12 if(i*i*i>=12000){ 13 System.out.println(i-1); 14 } 15 16 } 17 } 18 }