C program | How to make string pattern but in the backward Order?

Greetings,
i am currently newbie in this field,
i had some task to make pattern like this in c language
6
56
456
3456
23456
123456
0123456

can anyone help me?

Here is the program…

# include <stdio.h>
int main()
{
    int i,j,n;
    int num = 6;
    for(i=0;i<7;i++){
        n = num-i;
        for(j=0;j<i+1;j++)
        {
            printf("%d",n);
            n++;
        }
        printf("\n");
    }
}

Thanks for helping, i really appreciate it, SOLVED !!

1 Like