Question: 5. Write a C program that takes as input two lines of text, each ended by the newline character n'. It then outputs YES if

5. Write a C program that takes as input two lines of text, each ended by the newline character n'. It then outputs "YES" if they contain the same number of occurrences as each other of each of the 26 letters in the alphabet, and "NO" otherwise. E.g., if the input is "William Shakespeare!n" and I'11 make a wise phrase. In", the output is "YES". The program should ignore input charac- ters that are not letters and should not distinguish between lower and upper case. Use the getchar- function from
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
