Array 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Array 3

Write a program that replaces the occurence of a given character say c in a primary string (say PS) with another string (say s). Input: The first line contains the primary string (PS) the next line contains a character (c) The next line contains a string(s) Output: Print the string PS with every occurence of c replaced by s. NOTE: There are no whitespaces in PS or s. Maximum length of Ps is 100. Maximum length of s is 10. https://code.sololearn.com/cobtdbjk9tPj/?ref=app John Wells sir can you please help me? thank you.

26th Sep 2018, 4:25 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
1 Answer
29th Jan 2020, 10:01 PM
Shubham kumar
Shubham kumar - avatar