Please rate the answer. Thank you.
MATLAB Code:
n=input('Enter an alphabet:','s');
if isletter(n)==0
disp('Wrong entry')
return
end
switch n
case 'a'
disp('vowel')
case 'e'
disp('vowel')
case 'i'
disp('vowel')
case 'o'
disp('vowel')
case 'u'
disp('vowel')
otherwise
disp('Not a vowel')
end
Get Answers For Free
Most questions answered within 1 hours.