Ask Question
27 May, 12:42

Rint "Censored" if userInput contains the word "darn", else print userInput. End with newline.

#include

#include

using namespace std;

int main () {

string userInput;

userInput = "That darn cat.";

/ * Your solution goes here * /

return 0;

}

+4
Answers (1)
  1. 27 May, 14:15
    0
    This is the closest thing I could come up with since I don't really know c++. (just so it's easier maybe put the name of the programming language)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Rint "Censored" if userInput contains the word "darn", else print userInput. End with newline. #include #include using namespace std; int ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers