package liu0917; public class Print { void output() { for(int i =100;i<=999;i++) { if(Math.pow(i/100,3)+Math.pow(i%10,3)+Math.pow(i/10%10, 3)==i) { System.out.println(i); } } } }
package liu0917; public class E { public static void main(String[] args) { Print pr=new Print(); pr.output(); } }