Computer Science, asked by kaabwattoo178, 11 months ago


Write a program that inputs a string and a character. It converts each occurrence of
the given character in the string to opposite case.​

Answers

Answered by CyberSquad
2

Answer:

Explanation:

Take one string of any length and calculate its length.

Scan string character by character and keep checking  the index .

If character in a index is in lower case, then subtract 32 to convert it in upper case, else add 32 to convert it in lower case

Print the final string.

pls mark me as brainlist

Similar questions