Using Java, Using two separate methods, write a program that takes an integer value. The first method will print out 5 v
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Using Java, Using two separate methods, write a program that takes an integer value. The first method will print out 5 v
Using Java, Using two separate methods, write a programthat takes an integer value. The first method willprint out 5 values where each value is greater than the previousvalue by 5 starting with the userinput. The second method will do the reverse.Examples:Input: 0Output: 0 5 10 15 20 0 -5 -10 -15 -20Input: 105Output: 105 110 115 120 125 105 100 95 90 85Input: 23Output: 23 28 33 38 43 23 18 13 8 3