Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char nome[50];
- printf("Qual o seu nome?");
- gets(nome);
- int i;
- for(i=0; nome[i] != '\0'; i++)
- printf("%c", nome[i]);
- // as 3 linhas anteriores poderiam ser substituídas por:
- // printf("%s", n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement