An anagram is a word formed by rearranging the letters of a different word.
Write a program anagram.c
which scans two lines of input, where each line contains a single word which is a string.
Your program should then determine whether the two words are an anagram or not.
The output from your program should look exactly like this:
$ dcc anagram.c -o anagram
$ ./anagram
angel
glean
Your two words are an anagram!
$ ./anagram
yummy
mummy
Your two words are not an anagram!
When you think your program is working, you can use CSE autotest to test your solution.
$ 1511 csesoc-autotest anagram
You can view the solution code to this problem here.