1 / 20
文档名称:

那些值得你拥有的唯美图片。.ppt

格式:ppt   大小:3,375KB   页数:20页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

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

分享

预览

那些值得你拥有的唯美图片。.ppt

上传人:n22x33 2018/6/30 文件大小:3.30 MB

下载得到文件列表

那些值得你拥有的唯美图片。.ppt

文档介绍

文档介绍:java编程题大全(Java programming questions Daquan)
[program 1]
Title: classical question: there are a pair of rabbits, from birth third months from the birth of a pair of rabbits every month, the little rabbit grows to third months, a month after birth
For rabbits, if rabbits don't die, ask the total number of rabbits per month?
1. program analysis: the laws of the rabbit series 1,1,2,3,5,8,13,21
[program 2]
Title: determine how many primes there are between 101-200, and output all primes.
1. program analysis: determine the prime number method: with a number of 2 to sqrt removed (this number), if you can be divisible,
It shows that this number is not a prime number, but is a prime number.
[program 3]
Title: print out all the "narcissus number", the so-called "narcissus number" refers to a three digit, the number of cubic and equal to the number itself. Such as:
The 153 is a "daffodils", because three times three times three times 5 + 3 153=1.
1. program analysis: the use of for cycle control 100-999 numbers, each position of a number of bits, ten, 100.
[program 4]
Title: factoring a positive integer into a prime factor. For example: enter 90 and print out 90=2*3*3*5.
Program analysis: when factoring the N, we should first find a minimum prime number, K, and plete the following steps:
(1) if the prime number is exactly n, the process of factoring the quality factor is over and printed out.
(2) if n<>k, but n can be divisible by K, you should print out the value of K, and use n to divide the quotient of K as the new positive integer, you n, repeat the first step.
(3) if n cannot be divisible by K, use k+1 as the value of K and repeat the first step.
[program 5]
Title: use the nesting of conditional operators plete this question: students with grades >=90 are represented by A, between 60-89 points by B, below 60 points
Represented by C.
1. program analysis: (a>b) a:b, which is a basic example of the conditional operator.
[program 6]
Enter two positive