#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int i, visina = 9;
char *str
= malloc(visina
+ 1); str[visina] = '\0';
for(i=1;i<2*visina;i++)
{
printf("%.*s\n", (visina
-abs(visina
-i
)), str
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IG1haW4odm9pZCkgewoJaW50IGksIHZpc2luYSA9IDk7CgljaGFyICpzdHIgPSBtYWxsb2ModmlzaW5hICsgMSk7CgltZW1zZXQoc3RyLCAnKicsIHZpc2luYSk7CglzdHJbdmlzaW5hXSA9ICdcMCc7CgkKCWZvcihpPTE7aTwyKnZpc2luYTtpKyspCgl7CgkJcHJpbnRmKCIlLipzXG4iLCAodmlzaW5hLWFicyh2aXNpbmEtaSkpLCBzdHIpOwoJfQoJcmV0dXJuIDA7Cn0=