Reference no: EM132207432
Write a program which:
1. Prints out the Multiplication Table for a range of numbers (positive integers).
• Prompts the user for a starting number: say 'x'
• Prompts the user for an ending number: say 'y'
• Prints out the multiplication table of 'x' up to the number 'y'
SPECIFIC REQUIREMENTS
1. You must use the following method to load the array: public static void loadArray(int table[][], int x, int y)
2. You must use the following method to display the array: public static void printMultiplicationTable(int table[][], int x, int y)
3. You must load the table array with products of the factors.
For example: the 5 x 5 array is loaded with the products for the times tables from 5 to 8
the 2 x 2 array is loaded with the products for the times tables from 5 to 6
1. No infinite loops, examples include: a. for(;;) b. while(1) c. while(true)
d. do{//code}while(1); 2. No break statements to exit loops
please write the code in the programming language java