In this program, you'll learn to print inverted half number pyramid.
#include <iostream>
using namespace std;
int main()
{
int i, j, c=1;
for (i=4; i>0; i--)
{
for (j=0; j<i; j++)
{
cout<< c << " ";
c++;
}
cout<< "\n";
}
return 0;
}
1 2 3 4
5 6 7
8 9
10