- 3
- 0
- 约8.46千字
- 约 25页
- 2017-10-06 发布于河南
- 举报
几个有意思的java作业(Some interesting Java jobs)
几个有意思的java作业(Some interesting Java jobs)
1. user input an integer, please output the integer factorial, such as: 5, =5*4*3*2*1
One point five
*
* *
* * *
The * * * *
Miss
2. output 99 multiplication table
3. programming output all three daffodils number narcissus number: you figure the number of cubic add equal to the number itself, for example 153 1*1*1+5*5*5+3*3*3=153 153 is a three narcissus number
4. calculate pi
Chinese of ancient mathematicians calculate pi is the easiest way to:
PI=4/1-4/3+4/5-4/7+4/9-4/11+4/13-4/15+4/17......
This formula results will be infinitely close to the value of PI, ancient Chinese mathematician Zu Chongzhi calculated pi, between 3.1415926 and 3.1415927, please programming to get this result, he many times to go through subtraction?
5. if a number is equal to the sum of its factors, we call this number for the end of a few, such as the 6 factor is 1,2,3 6=1+2+3 6 is a perfect number. Please print out the programming within 1000 all finished
6. verify the Gerd Bach conjecture and enter an even number greater than 6. Please output the sum of the even numbers which can be broken down into two prime numbers
Such as 10=3+7 12=5+7
Prime number: a number that cannot be divisible by any number except 1 and itself
1., write two methods, one way to insert an integer into a particular location of an integer array, and the element in the array to move backwards
Another way to remove an element from a particular location in a plastic array is to move elements forward in the array
2. there are even numbered soccer teams in a single round robin game. Please print each round of the game according to the specified algorithm
3., define an odd number of two-dimensional array, each element in order to fill in different natural numbers, the requirements of the ranks and diagonal elements add equal results
-------------------
Odd order magic square, which is 3 order, 5 order and 7 order...... So how to construct such a magic square magic square?
We can ta
您可能关注的文档
- 从销售精英到销售高手2天蜕变疯狂(From sales elite to sales master, 2 days change crazy).doc
- 从限抗令看产品经理的能力和职责(Ability and responsibility of product manager from restriction order).doc
- 从零工作法(Zero work method).doc
- 从零开始学化妆(Learn make-up from scratch).doc
- 从龙樱中学习这些(Learn from these longing in).doc
- 仓鼠饲养法则(Hamster feeding rules).doc
- 从失效广告看奥运营销(Looking at Olympic marketing from ineffective advertisement).doc
- 他们的山河在哭泣(Their mountains and rivers cry).doc
- 付与外销得当的计谋任务(Give proper strategic task for export).doc
- 从心理学角度讨论人际沟通(Discuss interpersonal communication from a psychological perspective).doc
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
原创力文档

文档评论(0)