Experiments report

1. printout of all the "number of Narcissus", the so-called "number Narcissus" means a 3-digit number, which is equal to the digits of the cube and the number itself. For example, 153 is a "number daffodils."

Experiments Source:

 

 The results:

 

 Design ideas: start by looking inside to 999 from 100 the number of cycles with whlie daffodils, each number with \ 100 seeking hundreds digit, then by seeking tens% 100 \ 10, single-digit direct number remainder 10%, then the cubic hundred ten bits extracted then judged whether the sum is equal to the original number.

2. Write a Java program, find the value of + 13-23 + 33-43 + 973-983 + 993-1003 ... of.

Guess you like

Origin www.cnblogs.com/hhwcg/p/11497224.html
Recommended