Problem Statement: Write a program to a make rectangle by taking the length and breadth as inputs (in the form of rows and columns) and give output in the following manner: and ( In simple words, we have printed stars (*) on the boundary positions of the matrix and on the centre positions of the matrix we have printed blank space( ) ) THE CODE: Sample Outputs: and In the above program, two int variables r and c to define the number of rows and columns respectively. On line 7 and line 9, following two statements are used to accept the input from the user: int r = sc . nextInt (); int c = sc . nextInt (); For taking the input Scanner class has been used, more about Scanner class Algorithm: Two for loops are defined: · First for loop with counter variable i has initial value 1, conditional statement i less than or equal to r and an updating statement i++ . · Inside the first loop there is a second for loop, with counter variable j has