Computer Science, asked by geetanjalibedre7395, 11 months ago

Write an algorithm to checkgiven alphabet is vowel or not

Answers

Answered by charlie1505
6

Answer:

Step 1: Start

Step 2: Declare character type variable ch

Step 3: Read ch from User

Step 4: // Checking both lower and upper case vowels.

IF (ch == 'a' || ch == 'A' ||

ch == 'e' || ch == 'E' ||

ch == 'i' || ch == 'I' ||

ch == 'o' || ch == 'O' ||

ch == 'u' || ch == 'U' )

Print "Vowel"

ELSE

Print "Not vowel"

Step 5: Stop

Similar questions