#include <stdio.h>
#include <ctype.h>
int main()
{
char *string;
printf("Transaction IDs: ");
scanf("%s", &string);
char ch = string, *vowel = {'a', 'e', 'i', 'o', 'u', 'y'};
int count = 0;
for (int i = 1; ch; i = i + 1, ch = ch + 1) {
if (!valueinarray(*ch, vowel)) {
count = count + 1;
}
}
print("%d", count);
return 0;
}
Comments
Leave a comment