JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Scanner;
// Thanks to @LukArToDo
/*******************************
* CHALLENGE : Vowel Counter *
*******************************/
public class Program
{
public static void main(String[] args) {
System.out.println(
"*** CHALLENGE : Vowel Counter ***\n");
Scanner in = new Scanner(System.in);
// Enter the String :
String str=in.nextLine().toUpperCase();
int count = 0;
int len = str.length();
for(int i=0; i<=(len-1); i++) {
char ch = str.charAt(i);
if((ch == 'A') ||
(ch == 'E') ||
(ch == 'I') ||
(ch == 'O') ||
(ch == 'U')) {
count++;
continue;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run