You are on page 1of 1

#include <stdio.

h>
#include <conio.c>
#include <string.h>
void leer(char F[100]){
printf("DIGITE FRASE: ");
gets(F);
}
void contar(char F[100]){
int i,j,y,s=0;
y=strlen(F);
for(i=0;i<y;i++){
if(F[i]=='a'||F[i]=='A'||F[i]=='e'||F[i]=='E'||F[i]=='i'||F[i]=='I'||F[i]
=='o'||F[i]=='O'||F[i]=='u'||F[i]=='U'){
s++;
}
}
printf("\nEl numero de vocales que contiene la frase < %s > es: %d\n",F,s);
}
int main()
{
char F[100];
leer(F);
contar(F);
system("PAUSE");
return 0;
}

You might also like