#include<stdio.h>
#include<stdlib.h>
#include <string.h>
struct endereco {
char rua[50];
int numero;
};
struct cadastro {
char nome[50];
int idade;
struct endereco ender;
};
int main(int argc, char const *argv[]) {
struct cadastro c;
fgets(c.
nome, 50, stdin
); fgets(c.
ender.
rua, 50, stdin
); c.
ender.
rua[strcspn(c.
ender.
rua, "\n")] = 0; scanf("%d",&c.
ender.
numero);
printf("\n\nNome: %s\nIdade: %d\nRua: %s\nNumero: %d", c.
nome, c.
idade, c.
ender.
rua, c.
ender.
numero);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnN0cnVjdCBlbmRlcmVjbyB7CiAgICBjaGFyIHJ1YVs1MF07CiAgICBpbnQgbnVtZXJvOwp9OwpzdHJ1Y3QgY2FkYXN0cm8gewogICAgY2hhciBub21lWzUwXTsKICAgIGludCBpZGFkZTsKICAgIHN0cnVjdCBlbmRlcmVjbyBlbmRlcjsKfTsKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgY29uc3QgKmFyZ3ZbXSkgewogICAgc3RydWN0IGNhZGFzdHJvIGM7CgogICAgcHJpbnRmKCJOb21lLT4gIik7CiAgICBmZ2V0cyhjLm5vbWUsIDUwLCBzdGRpbik7CiAgICBjLm5vbWVbc3RyY3NwbihjLm5vbWUsICJcbiIpXSA9IDA7CiAgICBwcmludGYoIklkYWRlLT4gIik7CiAgICBzY2FuZigiJWQiLCZjLmlkYWRlKTsKICAgIHByaW50ZigiUnVhLT4gIik7CiAgICBmZ2V0YyhzdGRpbik7CiAgICBmZ2V0cyhjLmVuZGVyLnJ1YSwgNTAsIHN0ZGluKTsKICAgIGMuZW5kZXIucnVhW3N0cmNzcG4oYy5lbmRlci5ydWEsICJcbiIpXSA9IDA7CiAgICBwcmludGYoIk51bWVyby0+ICIpOwogICAgc2NhbmYoIiVkIiwmYy5lbmRlci5udW1lcm8pOwoKICAgIHByaW50ZigiXG5cbk5vbWU6ICVzXG5JZGFkZTogJWRcblJ1YTogJXNcbk51bWVybzogJWQiLCBjLm5vbWUsIGMuaWRhZGUsIGMuZW5kZXIucnVhLCBjLmVuZGVyLm51bWVybyk7CgogICAgcmV0dXJuIDA7Cn0K