Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #define MAX 50
- //16. Solicite o nome do usuário, em seguida exiba-o na console.
- int main()
- {
- char nome[MAX];
- printf("\n Digite seu nome: ");
- __fpurge(stdin);
- fgets(nome,MAX,stdin);
- printf("\n Nome digitado: \n %s",nome);
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement