#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
unsigned int rows, i;
printf("Enter the number of rows\n"); if (scanf("%u",&rows
) == 1 && rows
> 0) {
char row[rows];
for (i=rows; i--; )
printf("%*.*s\n", rows
, rows
-i
, row
); };
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IG1haW4oKQp7CiAgICB1bnNpZ25lZCBpbnQgcm93cywgaTsKCiAgICBwcmludGYoIkVudGVyIHRoZSBudW1iZXIgb2Ygcm93c1xuIik7CiAgICBpZiAoc2NhbmYoIiV1Iiwmcm93cykgPT0gMSAmJiByb3dzID4gMCkKICAgIHsKICAgICAgICBjaGFyIHJvd1tyb3dzXTsKICAgICAgICBtZW1zZXQocm93LCAnKicsIHJvd3MpOwogICAgICAgIAogICAgICAgIGZvciAoaT1yb3dzOyBpLS07ICkKICAgICAgICAgICAgcHJpbnRmKCIlKi4qc1xuIiwgcm93cywgcm93cy1pLCByb3cpOwogICAgfTsKICAgIAogICAgCiAgICByZXR1cm4gMDsKfQ==