asked 57.0k views
4 votes
Write the c++ program of the following out put
*
**
***
****
*****​

asked
User Ian Samz
by
8.0k points

1 Answer

1 vote
#include
using namespace std;

int main() {
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= i; j++) {
cout << "*";
}
cout << endl;
}
return 0;
}
answered
User Pecos Bill
by
7.8k points

No related questions found