Computer Science, asked by arnabmondal167, 5 months ago

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 shobhabidlan01
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