Question: Please help me in C program Digit Swap Ann Britt-Caroline has a safe with a 2-digit code. Occasionally, she types in the code too fast,

Please help me in C program Please help me in C program Digit Swap Ann Britt-Caroline has a

Digit Swap Ann Britt-Caroline has a safe with a 2-digit code. Occasionally, she types in the code too fast, accidentally swapping the positions of the two digits. She has asked if you could program her safe to check if not only the 2-digit code she entered was correct, but if the code with the two digits swapped is also correct. The first step in programming her safe in this manner is to write a program to swap the digits of a 2-digit code. Input The input consists of a single 2-digit code with only digits 1 to 9 , without any space between the digits. Output Output a single line with the swapped 2-digit code, without any space between the digits. Sample Input 1 Sample Output 1 Sample Input 2 Sample Output 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!