Last active
August 20, 2017 21:04
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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