Home /
Expert Answers /
Computer Science /
help-a-3-character-string-usercode-is-read-from-input-replace-the-first-character-in-usercode-wi-pa518
(Solved): help! A 3-character string, userCode, is read from input. Replace the first character in userCode wi ...
help!
A 3-character string, userCode, is read from input. Replace the first character in userCode with ' \( \& \) ' if the first character is a digit Replace the third character in userCode with "' if the third character is a digit. If neither condition is true, userCode is not changed. Ex: If the input is 725 , then the output is: \( 82- \)