We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d9a3e5 commit 63e6104Copy full SHA for 63e6104
1 file changed
1st_November_exam_SET-2/JAVA_SET_2_Q4.java
@@ -0,0 +1,14 @@
1
+import java.util.Scanner;
2
+public class Question4{
3
+ public static void main(String[] args) {
4
+ Scanner sc = new Scanner(System.in);
5
+
6
+ Scanner s = new Scanner(System.in);
7
+char ch = s.next().charAt(0);
8
+if((ch>=65&&ch<=90)||(ch>=97&&ch<=122))
9
+if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
10
+ System.out.print("vowel");
11
+else
12
+ System.out.print("Not_vowel");
13
+ }
14
+}
0 commit comments