Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char ch = 'a';
- while (ch <= 'z') {
- if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') {
- System.out.println(ch + " is a vowel");
- } else {
- System.out.println(ch + " is a consonant");
- }
- ch++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement