write a program to input a set of 20 leters. con-
vert each letter into upper case find and display
the number of vowels and the number of consonants
present in the set of given chers.
Answers
Answer:
THERE ARE 5 VOWELS.
THERE ARE 21 CONSONANT.
Explanation:
Please mark me as brainleast
Explanation:
I I have done this program by using array as you have asked to take a set of 20 letters.
here first you have to create an array
then run for loop
pick each character from the array
convert it into i n t
and check if it is greater than 96 and A is less than or equal to 122
then subtracted by 32
convert it again into a character
check if it is vowel or not
if vovel then add in V or else add in C
and then check other rest character
if they are greater than or equal to 65 and less than orequal to 90 then they are confirmed that they are an uppercase
check if they are vovel or not if they then add in v or else add in c
close the if loop
sorry for your inconvenience I haven't print the value
print the value after closing the for loop and then close main and class