SHARE
TWEET

Alphabet

a guest Feb 16th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char ch = 'a';
  2.         while (ch <= 'z') {
  3.             if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') {
  4.                 System.out.println(ch + " is a vowel");
  5.             } else {
  6.                 System.out.println(ch + " is a consonant");
  7.             }
  8.             ch++;
  9.         }
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top