Skip to content

Commit 25346b2

Browse files
Create Rectangle_using_for_loop.cpp
1 parent 4fbcd64 commit 25346b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Rectangle_using_for_loop.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <iostream>
2+
3+
using namespace std;
4+
5+
int main() {
6+
for (int i = 0; i < 9; i++) {
7+
cout << "*";
8+
}
9+
cout << endl;
10+
for (int i = 0; i < 4; i++) {
11+
cout << "* *" << endl;
12+
}
13+
for (int i = 0; i < 9; i++) {
14+
cout << "*";
15+
16+
}
17+
return 0;
18+
}

0 commit comments

Comments
 (0)