write a program in C++ using for loop statement..
Attachments:
Answers
Answered by
7
Hey there!
Here's the code.
// Generation of series of numbers
#include<iostream>
using namespace std;
int
main ()
{
cout << "Generation of series of numbers \n";
for (int i = 1; i <= 5; i++)
{
for (int j = 1; j <= i; j++)
{
cout << (i - j) + 1;
}
cout << endl;
}
return 0;
}
_______________________________
See the attachment for proper review.
_______________________________
Attachments:
Similar questions