- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvowel.java
More file actions
Latest commit
20 lines (20 loc) · 510 Bytes
/
Copy pathvowel.java
File metadata and controls
20 lines (20 loc) · 510 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
importjava.util.Scanner;
publicclassvowelextendsqwertyuiop
{
publicstaticvoidmain(Stringargs[])
{
Scannersc=newScanner(System.in);
System.out.println("\u000C");
System.out.println("Enter a String");
Stringa=sc.nextLine();intb=0,d=0;
intl=a.length();charc='\u000C';
for(inti=0;i<l;i++)
{
c=a.charAt(i);
b=vowel(c);
if(b==1)
d++;
}
System.out.println(d);
}
}