answersLogoWhite

0

import java.util.Scanner;

class Vowels{

public static void main(String[]args){

int c=0;

Scanner obj=new Scanner(System.in);

System.out.println("Enter your String:");

String b=obj.nextLine();

for (int i=0;i<b.length();i++) {

if (b.charAt(i)==('a')b.charAt(i)==('e')b.charAt(i)==('u')b.charAt(i)==('i')b.charAt(i)==('o')b.charAt(i)==('A')b.charAt(i)==('E')b.charAt(i)==('U')b.charAt(i)==('I')b.charAt(i)==('O')){

c++;

}

}

System.out.println("Number of vowels found: "+c);

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a pesuedocode to check wheather a given no is odd or even while not using 2?

doo doo


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Write a shell program to check and display 10 leap years?

dono


What is the wheather like in Dubai tomorrow?

75F and sunny check www.weather.com


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


Write a C program that takes a binary file as input and finds error check using different mechanisms?

write a c program that takes a binary file as input and finds error check using different mechanisms.


Do cruise's check you for weapons?

depends wheather its going up the river nile


Can you write a C program to check whether a string is an IP address or not?

Use the Exception class and type converters.


Write a program that takes a binary file as input and finds error check using different mechanism?

networking


Write programs for String Reversal and Palindrome check?

Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not