Question: Write a program asking the user to enter two names. Compare and if they are the same, display a message saying so. Otherwise display them
Write a program asking the user to enter two names. Compare and if they are the same, display a message saying so.
Otherwise display them in alphabetical order.
Hint: Use strcmp.
Sample Run Please input the first name San Francisco Please input the second name Los Angeles The names are not the same: Los Angeles San Francisco =================== Please input the first name San Jose Please input the second name San Jose The names are the same
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
