Write code to take and print a String input from the user, then take in the amount of characters to delete at the end of the input (assume that the number won’t be greater than the length of the string), and finally print out the modified string.