I did this program, he picks up a word and shows only the vowels,
You input "house" hi show "oue"
I want the result like this "o-u-e"
Code:
#include<conio.h>
#include<stdio.h>
#include<string.h>
int main()
{
char str[30],vogal[]={'a','e','i','o','u','A','E','I','O','U'} ,k[40];
char a;
int cont=0,i,qtd,aux=0;
printf(" Digite uma palavra: ");
fflush(stdin);
scanf("%s",str);
qtd=strlen(str);
for(cont=0;cont<qtd;cont++)
for(i=0;i<10;i++)
if(str[cont]==vogal[i])
k[aux++]=str[cont];
k[++aux]='0';
k[aux-1]=NULL;
printf(" \n %s ",k);
getch();
}