It serves to show only member of a sentence. like you type "house" he show "oue".
i want the result like this "o-u-e" can anyone give me a tip?


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();
}