Monday, May 28, 2018

Descending Triangle: C Code by MUBIN

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

No comments:

Post a Comment