Monday, May 28, 2018

Pyramid: C code by MUBIN

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



No comments:

Post a Comment