*
**
***
****
do program in C++
Answers
Answered by
1
Language:
C++
Program:
#include<iostream>
using namespace std;
int main()
{ int i, j;
for(i=1; i<=4; i++){
for(j=1; j<=i;j++) { cout<<"*";}
cout << "\n"; } }
Output:
In the attachment.
Explanation:
- Used one loop to control other and printed the output.
- cout<< "\n" prints empty line.
Attachments:
Similar questions