Question: Exercise 5 Using both scanf() and getchar() functions, write a program that read two characters from user and print them on the screen in the

Exercise 5 Using both scanf() and getchar() functions, write a program that read two characters from user and print them on the screen in the following manner Enter two characters (with a space), then press enter: a b Enter two characters (without any space), then press enter: xy The characters are: a --> b X --> y (Hint: If you use getchar() function, you may need to use the fflush(stdin) function too)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
