Write nested loops to print a rectangle. Sample output for given program

Write nested loops to print a rectangle. sample output for given program: * * * * * *.

A demo of the output for the given program is mentioned below;

* * *
* * *

C++ Program to Write nested loops to print a rectangle

Output

* *  *

*  * *

C++ Program to Write nested loops to print a rectangle by asking the user


Output

Please Enter the number of StarRows:

2

Please Enter the number of StarColumns:

3

* *  *

*  * *

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.