Friday, September 21, 2012

Validate whether a letter for input is a vowel

To validate whether the user entered a vowel we usually consider the following:
 
 
If you use a list instead, where vowels is a list that contains A,E,I,O U, the if statement is much easier to construct
 

No comments:

Post a Comment