fork(1) download
  1.  
  2. import java.util.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class Ideone {
  7. public static void main (String[] args) {
  8. Scanner x = new Scanner(System.in);
  9. String str;
  10. int c = 0;
  11. String s = "AEIOUY";
  12. str = x.nextLine();
  13. for(int i = 0; i < s.length(); i++) {
  14. for(int j = 0; j < str.length(); j++) {
  15. if( str.charAt(j) == s.charAt(i) ) {
  16. c++;
  17. }
  18. }
  19. }
  20. System.out.print(c);
  21. }
  22. }
Success #stdin #stdout 0.16s 321344KB
stdin
BBC KLMN
stdout
Standard output is empty