import java.util.*;
public class YUGI{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("输入一个三位数: ");
int abc = sc.nextInt();
sc.close();
int a = abc/100;
int b = abc / 10 % 10;
int c = abc % 10;
int x = Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3);
System.out.println("立方和:" +x);
}
}
温馨提示:内容为网友见解,仅供参考