Reginaldojs

exercicio 17,lista 4

Jun 18th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include<stdlib.h>
  3. int main() {
  4.    char nome[50];
  5.    printf("Por favor,digite seu nome:\n");
  6.    gets(nome);
  7.    int i=0;
  8.    int caracter=0;
  9.    do{
  10.       printf("%c\t",nome[i]);
  11.       if(nome[i]!='a' || nome[i]!='e' || nome[i]!='i'
  12.          || nome[i]!='o' || nome[i]!='u')
  13.       caracter++;
  14.       i++;
  15.       }while(nome[i] != '\0');
  16.       printf(",seu  nome posui %d caracteres!!!\n\n\n",caracter);
  17.    system("pause");
  18.    return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment