#include <stdio.h>
#include <string.h>
const int MAX=2;
const int QCH=15;
int main() {
char nomes[MAX][QCH];
int i;
for(i=0; i<MAX; i++) {
printf("\nForneça o nome do %dº produto:",i
+1);
fgets(nomes
[i
],QCH
,stdin
);
}
}
for (i=0; i<MAX; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmNvbnN0IGludCBNQVg9MjsKY29uc3QgaW50IFFDSD0xNTsKCmludCBtYWluKCkgewoKICAgIGNoYXIgbm9tZXNbTUFYXVtRQ0hdOwogICAgaW50IGk7CgogICAgZm9yKGk9MDsgaTxNQVg7IGkrKykgewogICAgICAgIHByaW50ZigiXG5Gb3JuZcOnYSBvIG5vbWUgZG8gJWTCuiBwcm9kdXRvOiIsaSsxKTsKCiAgICAgICAgZmdldHMobm9tZXNbaV0sUUNILHN0ZGluKTsKCiAgICAgICAgaWYoIXN0cmNocihub21lc1tpXSwgJ1xuJykpewogICAgICAgICAgICBzY2FuZigiJSpbXlxuXSIpOwogICAgICAgICAgICBzY2FuZigiJSpjIik7CiAgICAgICAgfQogICAgfQoKCiAgICBmb3IgKGk9MDsgaTxNQVg7IGkrKykgewogICAgICAgIHByaW50ZigiXG4lcyIsbm9tZXNbaV0pOwogICAgfQoKICAgIHJldHVybiAwOwp9Cg==