Question: C programming Two characters are read from input into variables firstChar and lastChar. Output Valid input if firstChar and lastChar are not the same character

C programming Two characters are read from input into variables firstChar and lastChar. Output "Valid input" if firstChar and lastChar are not the same character (regardless of case if the input contains letters). Otherwise, output "Invalid input". End each output with a newline.
Ex 1: If the input is j., then the output is:
Valid input
Ex 2: If the input is Cc, then the output is:
Invalid input

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 Programming Questions!