5g.) program to print:-

 

/*program to print the
5
54
543
5432
54321*/
#include<stdio.h>
#include<conio.h>
int main()
{
    int i,j;
    for(i=0;i<5;i++)
    {
        for(j=5;j>=5-i;j--)
        {
            printf("%d",j);
        }
        printf("\n");
    }
    return 0;
}
Output:-
5 54 543 5432 54321
**** Thank You *****

Comments

Popular posts from this blog

18 Amazing programs in C.