google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 Program to print pattern 12345 1234 123 12 1 in C

Program to print pattern 12345 1234 123 12 1 in C

3
Program to print pattern 12345 1234 123 12 1 in C


#include <stdio.h>
#include<conio.h>


void main()
{
    int i, j;

    for(i=5;i>=1;i--)
    {
        for(j=1;j<=i;j++)
        {
            printf("%d",j);
        }
        printf("\n");
    }

}


Output:



12345
1234
123
12
1

Post a Comment

3 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top