The input should be a single line with two positive numbers such as "4 3".Once one of the input numbers
is invalid (not integer or not positive), the program displays the message below and terminates.
*** End of Program ***
2) This is the main step in this assignment.Create nested loops to print out the numbers in
a table format.The first integer ROW defines the number of rows, and the second integer COL
defines the number of columns. Inside the loops, write the code to display
the positive numbers from 1 to Row*COL. Use the System.out.printf() function with "%4d" and "%4s" formats for the integers and Strings to align them right.
Help me write this program..