C Program to print numbers in rows and columns of Quadrangle pattern in reverse order

Program

#include<stdio.h>
void main()
{
	int n, i, j;
	printf("Enter the number of rows: ");
	scanf("%d", &n);
	for(i = 1; n >= i; i++)
	{
		for(j = n; j >= 1; j--)
			printf("%d ", j);
		printf("\n");
	}
}

Output

Enter the number of rows: 6
6 5 4 3 2 1 
6 5 4 3 2 1 
6 5 4 3 2 1 
6 5 4 3 2 1 
6 5 4 3 2 1 
6 5 4 3 2 1