Skip to content

Instantly share code, notes, and snippets.

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

  • Save mohnoor94/141f38ee28ef18ae7e269b3db2838937 to your computer and use it in GitHub Desktop.

Select an option

Save mohnoor94/141f38ee28ef18ae7e269b3db2838937 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) {
return (x == 'A' || x == 'a' ||
x == 'E' || x == 'e' ||
x == 'I' || x == 'i' ||
x == 'O' || x == 'o' ||
x == 'U' || x == 'u');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment