Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

remove voewel in C

#include<stdio.h>
#include<string.h>
int main()
{
    printf("enter any string\n");
    char str;
    scanf("%c",str);
    char *input=&str;
    char *vowel="aeiou";
    int i;
    int flag=0;
    char a[100];
    char* output=&a;
    int index=0;
    int j;
    for(i=0;i<strlen(input);i++)
    {
        for(j=0;j<strlen(vowel);j++)
        {
            if(input[i]==vowel[j])
            {
              flag=1;
              break;
            }
        }
        if(flag==0)
        {
            output[index++]=input[i];
        }
        flag=0;
    }
     for(i=0;i<index;i++)
    {
        printf("%c",output[i]);
    }
}