#include <stdio.h>

int main() {
    char n[60];
    scanf(" %s", n);

    printf("Vogais: ");
    for(int i=0;n[i] != '\0';i++ ){
        if(n[i]=='a' || n[i]=='e' || n[i]=='i' || n[i]=='o' || n[i]=='u'){
            printf("%c", n[i]);
        }
    }

    printf("\nConsoantes: ");
    for(int i=0; n[i] != '\0'; i++){
       if(n[i]!='a' && n[i]!='e' && n[i]!='i' && n[i]!='o' && n[i]!='u'){
           printf("%c", n[i]);
       }
    }
    return 0;
}

Embed on website

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