Theory Assignment 2
Theory Assignment 2
Assignment #02
1. Write a program in C++ to display a pattern like a right-angle triangle using
an asterisk.
Sample Output:
Input number of rows: 5
*
**
***
****
*****
2. Write a C++ program that makes a pattern such as a right angle triangle
using numbers that repeat.
Sample Output:
7. Write a C++ program that displays the pattern with the highest columns in
the first row and digits with the right justified digits.
Sample Output: