65 767
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #54306 in C++ for anushka

Question #54306
1
2 2
3 3 3
4 4 4 4
Expert's answer
#include<iostream>
using namespace std;

int main()
{
for(int i=1;i<5;i++)
{
for(int j=1;j<=i;++j)
{
cout<<i;
if (i-j==0) cout<<endl;
}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions