簡単なForサイクルエクササイズ7(水仙の数を集計)


  :          ?
	  :
		A:            
			              ,               
			  :153        
			153 = 1*1*1+5*5*5+3*3*3
		      ,      
		B:         , for         
		C:          , ,    
		D:        
		E:         
class ForDemo8{
	public static void main(String[] args){
		int number = 0;
		for(int x = 100;x <= 999;x++){
			int ge = x % 10;
			int shi = x / 10 % 10;
			int bai = x / 10 / 10 % 10;
			if(x == (ge*ge*ge+shi*shi*shi+bai*bai*bai)){
				number = number + 1;
				
			}
			
		}
		System.out.println("     :"+number);
	}
}