C program to print rectangle pattern of numbers || Reverse Numbers (Type 2) || Patterns || for loop || C Programming
This is a for loop program in which we will print a very simple pattern of numbers in reverse, with the help of the C Programming language.



#include <stdio.h>
void main()
{
    int rows;
    printf( "\nEnter the number of rows\n");
    scanf("%d",&rows);
    printf("\n");

    for (int i = rows; i >= 1; i--)
    {
        for (int j = rows; j >= 1; j--)
        {
            printf("%d ", i);
        }
        printf("\n");
    }
}


#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post