Question: A 3 - character string, passCode, is read from input. Replace the first character in passCode with ' ! ' if the first character is
A character string, passCode, is read from input. Replace the first character in passCode with if the first character is alphabetic. Replace the second character in passCode with if the second character is alphabetic. If neither condition is true, passCode is not changed.
Ex: If the input is dfc then the output is:
c
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
