67 020
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #32511 in C++ for aman

Question #32511
write a program for the following way
1
12
123
1234
12345
Expert's answer
#include <iostream>
using namespace std;

int main(void)
{
int i, j, n;
cout <<"Enter number: ";
cin >> n;

for(i = 1; i<= n; i++)
{
cout<< endl;

for(j = 1;j <= i; j++)
cout<< j;
}

return 0;
}

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