-
[CODE] Write a program(Java) that prompts the user for apositive integer. If the user does not enter a positive integer,keep prompting them (using a WHILE loop) until they enter properinput (so, for example, if they enter -5, it should re-promptbecause the value is not positive).
Once the user has entered a positive integer, n, use a FOR loopto output the factorial of n.
Recall, n! = n * (n-1) * (n-2) * … * 3 * 2 * 1.
-
[CODE] Write a program(Java) that prompts two positive integersm, n from the console and
outputs a multiplication table of the size m x n.
For each
OROR