find the combination of vowel in a string c
#include <stdio.h>
#include <string.h>
void main ()
{
char arr[100];
int i, count = 0;
printf("Enter array: ");
gets(arr);
printf("\nThe combination of vowels are: ");
for(i=0; i < strlen(arr); i++)
{
if((arr[i] == 'a' || arr[i] == 'e' || arr[i] == 'i' || arr[i] == 'o' || arr[i] == 'u')
&& (arr[i+1] == 'a' || arr[i+1] == 'e' || arr[i+1] == 'i' || arr[i+1] == 'o' || arr[i]+1 == 'u' ))
{
count++;
printf(" %c%c ",arr[i], arr[i+1]);
}
}
printf("\n\nNumber of occurrences of two vowels in succession is %d",count);
}