Reginaldojs

exercicio 18,lista 4

May 15th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.          int quantVogais=0;
  4.          char nome[50];
  5.          printf("digite seu nome:");
  6.          gets(nome);
  7.          int i;
  8.          for(i=0;nome[i]!='\0';i++)
  9.          if(nome[i]=='a' || nome[i]=='e' || nome[i]=='i' || nome[i]=='o' || nome[i]=='u')
  10.          quatVogais++;
  11.          printf(" a quantidade de vogais sera %d",quantVogais);
  12.          return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment