#include <stdio.h>
#include <string.h>

int main() {
    char name[90]=" ";
    int i=0, vowels=0, consonants=0;
    scanf("%s",name);
    while (name[i]!='\0'){
        if (name[i]=='a'|| name[i]=='e'||name[i]=='i'||name[i]=='o'||name[i]=='u'){
            vowels++;
            
        }
        else{
            consonants++;
        }
        i++;
    }
    printf("the number of vowels in the name are %d",vowels);
    printf("\nthe number of consonants in the name are %d",consonants);
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: