Enter a string. Write a program to count and print the number of consonants
and change the case of the letter following the vowel. All other characters
remain the same. Print the changed string.
HELP I HAVE ONLY 50 MINS PLS
Answers
Answered by
0
Answer:
Given a string which contains lowercase English alphabets. The task is to replace each consonant with the next immediate consonant that comes in English alphabets.
Let’s say we have to replace character
a, it will be replaced by
b. Another example, let’s say we have to replace character
d, the next immediate consonant is
f, hence
d will be replaced by
f.
Note: If the character is ‘z’, then look circularly in English alphabets for the next consonant, i.e. replace it with ‘b’.
Similar questions
Hindi,
2 months ago
Computer Science,
2 months ago
History,
2 months ago
Social Sciences,
5 months ago
Math,
11 months ago
Math,
11 months ago
Science,
11 months ago