5 i .) program to print:-

 

/* program to print
*   *   *   *   *  
*   *   *   *
*   *   *  
*   *
*
*/
# include<stdio.h>

int main()
{
    int i,j;
    for(i=0;i<5;i++)
    {
        for(j=5;j>i;j--)
        {
            printf("* ");
        }
        printf("\n");
    }
    return 0;
}

Output :-
* * * * * * * * * * * * * * *
###### Thank you ######

Comments

Popular posts from this blog

18 Amazing programs in C.