几个有意思的java作业(Some interesting Java jobs).docVIP

  • 3
  • 0
  • 约8.46千字
  • 约 25页
  • 2017-10-06 发布于河南
  • 举报

几个有意思的java作业(Some interesting Java jobs).doc

几个有意思的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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档