Question: keep code simple and easy to understand Q5) (5 Marks) Create a Java program that asks the user to enter a number and then if
keep code simple and easy to understand
Q5) (5 Marks) Create a Java program that asks the user to enter a number and then if the number is less than 6 find its factorial, but if its 6+ then find the total of numbers from 1 to that number.
Q6) (5 Marks) Create a Java program to ask the user to enter a number and find and print its code upon the codes here :
| No | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| Code | A | R | T | B | C | G | H | F | K | M |
For example, if the number is 249 then the code is TCM
If the number is 8015 then the code is KARG
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
