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

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

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 * *  * *  * *

Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials