Friday, October 30, 2020

C program for following pattern: 55555 44444 33333 22222 11111

55555

44444

33333

22222

11111


#include <stdio.h>

int main()

{

    int i,j;

    for(i=5;i>=1;i--)

    {

        for(j=1;j<=5;j++)

        {

            printf("%d",i);    

        }

    printf("\n");

    }

    return 0;

}

No comments:

Post a Comment

From a Mother’s Passion to Real Impact: 20+ Years of Quiet Consistency

 my mom has been doing research on every products since more than 20 years along with managing family of around 20 members and upbringing me...