Question: How would I modify the code so the user enters the string and assumes the string is always odd and have at least three characters.

How would I modify the code so the user enters the stringHow would I modify the code so the user enters the string and assumes the string is always odd and have at least three characters. So instead of given string in the code I want to give the user the ability to decide what the string will be.

9 #include 10 using namespace std; 11 12 //funcation to print Prefix 13. void printPre(string s) { 14. for(int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!