mport java.util.Scanner;
public class LITI {
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
int n= scanner.nextInt();
int ones =n%10;
int tens = (n/10)%10;
int hundreds = (n/100)%10;
int thousands = n/1000;
int onescube=ones*ones*ones;
int tenschbe=tens*tens*tens;
int hundredscube=hundreds*hundreds*hundreds;
int thousandscube=thousands*thousands*thousands;
int sum=onescube+tenschbe+hundredscube+thousandscube;
System.out.println("sum");
}
}
为什么输入1234,想求出各个数位上的数的立方和100,却输出2253.20呀