For Loop Questions
For Loop Questions
Sample Output:
Print a pattern like square with # character:
####
####
####
####
2. Write a program in C++ to display the pattern like right angle triangle.
*
**
***
****
*****
3. Write a program in C++ to display the pattern like right angle triangle
with number.
1
12
123
1234
12345
4. Write a C++ program that makes a pattern such as a right angle triangle
using numbers that repeat.
1
22
333
4444
55555
5. Write a C++ program to make such a pattern like a right angle triangle
with the number increased by 1.
1
2 3
4 5 6
7 8 9 10
6. Write a C++ program that displays the pattern like a pyramid using
asterisks, with odd numbers in each row.
*
***
*****
*******
7. Write a C++ program to make such a pattern like a pyramid with
numbers increased by 1.
Sample Output:
1
2 3
4 5 6
7 8 9 10