can you help me solve this question ? ,Write a C program that takes the length and width then output a rectangle, the rectangle board must be * and filled with #. (this question must be solved using loops). (Thank you )
can you help me solve this question ? ,Write a C program that takes the length and width then output a rectangle, the rectangle board must be * and filled with #. (this question must be solved using loops). (Thank you )
Yes.
Now, what have you tried? If I were you, I would start by hardcoding either the length or width, and then try to write a loop to draw a single column or row. Once I've done that and tested to see it works as expected, I would hardcode the other input and write more code (i.e., a loop), to draw the whole rectangle. With that done, I would then change the hardcoding of length and width into code that requests for input and reads it.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)