Contact Learn C
Copy

Program 60:Numeric Pattern 2

Program 60:
 
#include<stdio.h>
main()
{
    int i,j,num,k,count=0;
    printf("Enter number of rows\n");
    scanf("%d",&num);
    for(i=num;i>=1;i--)
    {
    for(k=1;k<=count;k++)
    {
        printf(" ");
    }
        for(j=1;j<=i;j++)
        {
            printf("%d",i);
           
        }
        
    printf("\n");
    count++;
    }
}
Explanation:

//Coming Soon...

  Output:

Numeric Pattern2
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide