Tuesday, November 25, 2025

Write the C Program. Print the following format

 Write the C Program. Print the following format  

    *****
    ****
    ***
    **
    *


#include<stdio.h>
main( )
{
    int i,j;
    for(i=5;i>=1;--i)
    {
for(j=i;j>=1;--j)
   printf("*");
        printf("\n");
    }
}


                    Output




No comments:

Post a Comment