A small exercise using control constructs.
Write a program to print three rectangular blocks of characters placed left to write on the console screen. The program first prompts and reads a total of nine values, three for each block. For each, read the height and width, two positive integers, and a non-blank character to build the block out of.
You may word the propts as you like, but you must read each value using the >> operator in the order shown. Do not use any other input methods, or change the order of reading.
You may not use arrays or any sort of container or collection. (We'll talk about those things later, and if you already know some of that, fine. But now is not the time.)
There are a number of ways to solve this. I wrote an outer while loop that runs until all rows are printed, with three inner for loops (or whiles would work fine) to print the line of characters for each block. Of course, you must print lines of spaces after the the shorter blocks (except the rightmost) to make everything line up. I used some ifs to print the correct character each time. It can also be done by adding extra loops (which might run zero times) to print spaces when needed.
When your program works and looks nice, submit over the web here.