Question: String my _ string is read from input. Assign variable sub _ string with all the characters in my _ string, except for the first
String mystring is read from input. Assign variable substring with all the characters in mystring, except for the first and last characters.
Click here to show example
Ex: If the input is:
Practice makes perfect
then the output is:
ractice makes perfec
mystring input
startindex:
endindex:
#substring mystring
printsubstring
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
