Problem Statement
Write a program that reads two integers representing the dimensions of a rectangle (rows and columns) and prints a rectangle made of carets (^) separated by spaces. Each row should contain exactly the specified number of columns, with each caret separated by a single space. The rectangle should have exactly the specified number of rows.