1 / 26
文档名称:

java基础练习(java基础练习).doc

格式:doc   大小:30KB   页数:26页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

java基础练习(java基础练习).doc

上传人:rjmy2261 2017/11/18 文件大小:30 KB

下载得到文件列表

java基础练习(java基础练习).doc

文档介绍

文档介绍:java基础练****java基础练****br/>1, given the number of 3, the maximum number of 3 figures.
2. Write the Java program to find the sum of 13+23+33+43+... +973+983+993+1003
3. Write the Java program to find the value of 13-23+33-43+... +973-983+993-1003
4, inverse ordinal: inverse ordinal is integer integer inverted, such as integer 12345, upside down is 54321. Requirement: the inverse ordinal number of any given integer.
5, narcissus number: refers to a number of three or more, the number of each bit of its n power sum is equal to its own. For example: 153=1*1*1+5*5*5+3*3*3
Demand 1: determine whether the number of users entering three digits is the number of daffodils
Demand 2: seeking the number of flowers between 100-1000.
6, judge 101-200 between how many primes, and output all primes.
Program analysis: judge the prime number method: use a number to remove 2 to sqrt (this number), if can be divisible, it shows that this number is not prime, and vice versa is prime number.
7. pose a positive integer into a prime factor. For example: enter 90, print out 90=2*3*3*5.
Program analysis: to pose the prime factor of N, we should first find a minimum prime number k, and plete the following steps:
(1) if the prime number is equal to N, the process of posing the prime factor is finished and printed out.
(2) if n<>k, but n can be divisible by K, it should print out the value of K, and use n quotient divided by K, as the new positive integer n, repeat second steps.
(3) if n cannot be divisible by K, then k+1 is used as the value of K, and second steps are repeated.
8, the use of nested operators plete this problem: >=90 scores of students with A representation, 60-89 points between the use of B representation, 60 points below the use of C representation.
9, the output of 9*9 formulas. Program analysis: branch and column considered, a total of 9 rows of 9 columns, I control line, J control column.
10, isosceles triangle print arbitrary line number: program analysis: the out