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
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
Biology,
5 months ago
Computer Science,
5 months ago
World Languages,
5 months ago
Math,
11 months ago
English,
11 months ago
Math,
1 year ago
Math,
1 year ago