Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include<stdlib.h>
- int main() {
- char nome[50];
- printf("Por favor,digite seu nome:\n\n");
- gets(nome);
- int i=0;
- int caracter=0;
- printf("\n\nOla ");
- do{
- printf("%c",nome[i]);
- caracter++;
- i++;
- }while(nome[i] != '\0');
- printf(",seu nome posui %d caracteres!!!\n\n\n",caracter);
- printf("Ate a proxima!\n\n");
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment