Skip to content

Instantly share code, notes, and snippets.

@mohnoor94
Last active August 20, 2017 21:04
Show Gist options
  • Select an option

  • Save mohnoor94/6320b03a61c07713395fe6cfeaba79b4 to your computer and use it in GitHub Desktop.

Select an option

Save mohnoor94/6320b03a61c07713395fe6cfeaba79b4 to your computer and use it in GitHub Desktop.
A function isVowel that returns the value true if a given character is a vowel and otherwise returns false
// www.abukhleif.com
bool isVowel (char x) {
char y = toupper(x);
return (y=='A' || y=='E' || y=='I'|| y=='O'|| y=='U');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment