Answer to Question #54306 in C++ for anushka

Question #54306
1
2 2
3 3 3
4 4 4 4
1
Expert's answer
2015-08-31T03:31:25-0400
#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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS