C program to print Pattern 7

#include <stdio.h>
#include <stdlib.h>

int main()
{

   int i,j,n;
   printf("Enter number of row : ");
   scanf("%d",&n);
   for(i=n;i>=1;i--)
   {
       for(j=5;j>=1;j--)
       {

           printf("%d ",j);
       }

       printf("\n");
   }
}

 


Output:
Patterns Programs

Subscribe For Daily Updates