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;
public class Program {
public static void main(String[] args) {
System.out.println("Enter Any Character ");
Scanner inputchar=new Scanner(System .in);
char ch;
ch=inputchar.next().charAt(0);
switch(ch) {
case 'a':
System.out.println("vowel");
break;
case 'i':
System.out.println("vowel");
break;
case 'e':
System.out.println("vowel");
break;
case 'o':
System.out.println("vowel");
break;
case 'u':
System.out.println("vowel");
break;
default:
System.out.println("not a vowel");
break;
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run