#include<stdio.h>
int main() {
char nome[99];
printf("Digite o nome completo:\n"); int qtdA = 0;
for (int i = 0; nome[i] != 0; i++) {
if (nome[i] == 'a' || nome[i] == 'A') qtdA++;
if (nome
[i
] != ' ' && (i
== 0 || nome
[i
- 1] == ' ')) printf("%c.", nome
[i
]); }
printf("\nSeu nome tem %d letras 'A'" , qtdA
); }
//https://pt.stackoverflow.com/q/257521/101
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKCkgewoJY2hhciBub21lWzk5XTsKCXByaW50ZigiRGlnaXRlIG8gbm9tZSBjb21wbGV0bzpcbiIpOwoJZmdldHMobm9tZSwgOTgsIHN0ZGluKTsKCWludCBxdGRBID0gMDsKCWZvciAoaW50IGkgPSAwOyBub21lW2ldICE9IDA7IGkrKykgewoJICAgIGlmIChub21lW2ldID09ICdhJyB8fCBub21lW2ldID09ICdBJykgcXRkQSsrOwoJICAgIGlmIChub21lW2ldICE9ICcgJyAmJiAoaSA9PSAwIHx8IG5vbWVbaSAtIDFdID09ICcgJykpIHByaW50ZigiJWMuIiwgbm9tZVtpXSk7Cgl9CglwcmludGYoIlxuU2V1IG5vbWUgdGVtICVkIGxldHJhcyAnQSciICwgcXRkQSk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI1NzUyMS8xMDE=