#include <stdio.h>
int main(void) {
int max = 30;
printf("\n| %*s | %8s | %8s |", max
, "Nome", "Salario", "Idade"); printf("\n| %.*s | %8s | %8s |", max
, "Nome", "Salario", "Idade"); max = 3;
printf("\n| %*s | %8s | %8s |", max
, "Nome", "Salario", "Idade"); printf("\n| %.*s | %8s | %8s |", max
, "Nome", "Salario", "Idade"); }
//https://pt.stackoverflow.com/q/39389/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbWF4ID0gMzA7CglwcmludGYoIlxufCAlKnMgfCAlOHMgfCAlOHMgfCIsIG1heCwgIk5vbWUiLCAiU2FsYXJpbyIsICJJZGFkZSIpOwoJcHJpbnRmKCJcbnwgJS4qcyB8ICU4cyB8ICU4cyB8IiwgbWF4LCAiTm9tZSIsICJTYWxhcmlvIiwgIklkYWRlIik7CgltYXggPSAzOwoJcHJpbnRmKCJcbnwgJSpzIHwgJThzIHwgJThzIHwiLCBtYXgsICJOb21lIiwgIlNhbGFyaW8iLCAiSWRhZGUiKTsKCXByaW50ZigiXG58ICUuKnMgfCAlOHMgfCAlOHMgfCIsIG1heCwgIk5vbWUiLCAiU2FsYXJpbyIsICJJZGFkZSIpOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zOTM4OS8xMDE=