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

int main() {
    char Risadas[60], Vogais[60];
    int i=0, k=0;
    scanf("%s", Risadas);

    do{
        if(Risadas[i]=='a'|| Risadas[i]=='e'|| Risadas[i]=='i'|| Risadas[i]=='o'|| Risadas[i]=='u'){
            Vogais[k]=Risadas[i];
            k++;
        }
        i++;
    }while(Risadas[i] !='\0');

    Vogais[k] = '\0';

    char Invertida[60];

    for(int j=0; j<k; j++){
        Invertida[j] = Vogais[k-1-j];
    }

    Invertida[k] = '\0';
    
    if(strcmp(Invertida, Vogais)==0){
        printf("S");
    }
    else{
        printf("N");
    }

    return 0;
}

Embed on website

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