Professional Documents
Culture Documents
Lab
Lecture 08
Syntax
for ( init; condition; increment ) {
for ( init; condition; increment ) {
statement(s);
}
statement(s); // you can put more statements.
}
Write a program in C++ to display the pattern like right angle triangle with number.
1
12
123
1234
12345
Write a program in C++ to make such a pattern like a pyramid with an asterisk.