The third course and lab reports summarize week (a)

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."

1) Source Experiment

2) Run Screenshot

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

1) Source Experiment

2) Run Screenshot

3. Programming seek 1! +2! +3! + ... + 20 !.

1) Source Experiment

2) Run Screenshot

4. The write Java programs, calculation 8 + 88 + 888 + 10 ... and the front.

1) Source Experiment

2) Run Screenshot

5. If a number is exactly equal to the sum of its factors, this number is called the complete number. All finished programming the number of output within 1000.

1) Source Experiment

2) Run Screenshot

6. write applications, output meets + ... + n <maximum positive integer 1 + 2 + 3 8888.

1) Source Experiment

2) Run Screenshot

7. FIG below for printing cycle (isosceles triangle)

1) Source Experiment

2) Run Screenshot

Guess you like

Origin www.cnblogs.com/H-Alice/p/11491125.html