Java conditional and looping practice

  1. According to age, to print the current age of the person is a juvenile (under 18), youth (19-28), middle-aged (29-55), elderly (56 or more)
    Here Insert Picture Description
  2. It determines whether a number is a prime number
    Here Insert Picture Description
  3. Printing 1 - All primes between 100
    Here Insert Picture Description
  4. 1000 is output - All the leap year between 2000
    Here Insert Picture Description
  5. The output of the multiplication tables
    Here Insert Picture Description
  6. Seeking the greatest common divisor of two positive integers
    Here Insert Picture Description
  7. Value 1/100 - A 1 / 1-1 / 2 + 1 / 3-1 / 4 + 1 / + 5 ...... 1/99 calculation.
    Here Insert Picture Description
Published 60 original articles · won praise 23 · views 3332

Guess you like

Origin blog.csdn.net/weixin_44945537/article/details/100813346