#include<stdio.h>
#include<conio.h>
main()
{
int row, clm,space;
for(row = 1; row <= 10; row++)
{
//printing spaces//
for(space=2; space <= row; space++)
{
printf("%c",' ');
}
//printing Stars//
for(clm = 9; clm >=row; clm--)
{
printf("%c",'*');
}
printf("\n");
}
getche();
return 0;
}
No comments:
Post a Comment