Created
December 4, 2017 14:44
-
-
Save OwiseKyawMinOo/9b5b094e3a0c24758c860442d84979ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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