Skip to content

Instantly share code, notes, and snippets.

@OwiseKyawMinOo
Created December 4, 2017 14:44
Show Gist options
  • Save OwiseKyawMinOo/9b5b094e3a0c24758c860442d84979ca to your computer and use it in GitHub Desktop.
Save OwiseKyawMinOo/9b5b094e3a0c24758c860442d84979ca to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<conio.h>
int main()
{
for(int row=0;row<=4;row++)
{
for(int space=1;space<=4-row;space++)
{
printf(" ");
}
for(int star=0;star<=row;star++)
printf("* ");
printf("\n");
}
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment