I have spent at least an hour trying to display this pattern and I am not getting anywhere.
Pattern C
1
21
321
4321
54321
654321
This is as far as I got
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout << "Pattern C" << endl;
// Enter an initial value for i
for (int i = 1; i <= 6; i++)
{
// Increment the value of J
for (int j = 1; j <= i ; j++)
{
cout << setw (2)<< i;