Skip to content

Commit 7f303f8

Browse files
author
virexh
authored
check given alphabet is vowel or not
1 parent 75e8996 commit 7f303f8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

vowels.class

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#https://in.pinterest.com/pin/747808713120875493/
2+
#Subscribed by codehouseindia
3+
import java.util.Scanner;
4+
public class char_vow {
5+
public static void main(String[] args) {
6+
char c;
7+
System.out.println("Author name=Viresh Solanki");
8+
System.out.print("character=");
9+
Scanner s=new Scanner(System.in);
10+
c=s.next().charAt(0);
11+
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
12+
{
13+
System.out.println("character is vowel="+c);
14+
}
15+
else
16+
{
17+
System.out.println("character is not vowel="+c);
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)