Skip to content

Instantly share code, notes, and snippets.

@invatainfo
Created January 19, 2018 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invatainfo/cf30bd3d1f366be4d0f8f6c4b0a2c18e to your computer and use it in GitHub Desktop.
Save invatainfo/cf30bd3d1f366be4d0f8f6c4b0a2c18e to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string.h>
using namespace std;
int main(){
char a[51],vocale[]="aeiou";
cin.get(a,50);
int i;
for (i = 0; i < strlen(a); i++)
{
if(strchr(vocale,a[i])==NULL)
cout<<a[i]<<" nu este vocala"<<endl;
else
cout<<a[i]<<" este vocala"<<endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment