Question: Do not use functions or logical relational operators for the Problem!!! Your preferred banking institution is requiring that you change your five digit PIN in
Do not use functions or logical relational operators for the Problem!!! Your preferred banking institution is requiring that you change your five digit PIN in the name of security. One requirement of your new PIN is that it cannot share any digit at the same place with your current PIN. Given both the current and new PIN print the total number of invalid digits. Both PIN values will be in the range [00000, 99999]. Example Execution #1 ('3' digit in the hundreds place is common to both PINs): Enter your current PIN: 12345 Enter your new PIN: 98310 Total number of invalid digits: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
