fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. char C;
  10. Scanner inp=new Scanner(System.in);
  11. C=inp.next().charAt(0);
  12.  
  13. if(C<65 || C>90)
  14. System.exit(0);
  15. else
  16. { if(C==65 ||C==69 ||C==73 ||C==79 ||C==85)
  17. System.out.println("Vowel");
  18. else System.out.println("Consonant");
  19. }
  20. }
  21. }
Success #stdin #stdout 0.12s 2184192KB
stdin
B
stdout
Consonant