import java.util.*;
class string
{
public static void main()
{
Scanner in=new Scanner(System.in);
String s;
System.out.println("Enter a string");
s=in.nextLine();//to accept a string from the user
s=s.toUpperCase();//to convert the stirng into uppercase
char ch;
int i,c=0;
for(i=0;i<s.length();i++)
{
ch=s.charAt(i);//to extract each character from the string
if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
c++;
}
System.out.println("Number of vowels is "+c);
}
}
what is the output? plz help
Answers
Answered by
0
Answer:
kseokwmww.
w
Explanation:
wjksms.s
sik wmsmsksos
Asians s.z
is ask.a
Asians
Similar questions
Computer Science,
4 months ago
Math,
4 months ago
Math,
8 months ago
Science,
11 months ago
Math,
11 months ago