Advertisement
akosiraff

EvenNumberSeries JAVA Answer

Oct 12th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/evennumberseries/
  3. Write a program that prompts the user for a positive integer and then prints out
  4. all even numbers starting at 2 up to that integer. For example, when the user
  5. enters 20, the program should print
  6. 2 4 6 8 10 12 14 16 18 20
  7. Recall that a number is an even number is one that is divisible by 2. So, you’ll
  8. need to employ the modulus operator and if the number is evenly divisible by 2,
  9. output it.
  10.  
  11. Download: https://solutionzip.com/downloads/evennumberseries/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement