Suppose s is some string that has been created inside main a
Suppose s is some string that has been created inside main, and suppose s.length() is greater than 3 (so s has more than 3 characters). Using the String class methods length and substring, write one or several lines of code that will print the last three characters in s.
For example if s is the String \"donkeys\", then your code should print
Solution
//length of the string
int len = s.length();
//Now we break it in to a substring
cout<<s.substr(len-3,3);
//The substring will start at char position len-3 and will be of length 3.
