int main()
{
int n;
int i,j;
while(~scanf("%d", &n))
{
for(i=0;i<n;++i)
{
for(j=i+1;j<n;++j)
{
printf(" ");
}
printf("*\n");
}
}
return 0;
- }