Note that  each boxed item represents a separate data file to be tested on your program.  The first character on each line is assumed to be in column 1. You can assume keyboard input.  Since the  input is non-numeric, you don't have to worry about error checking of in-range integers or reals which is the problem you ran into with the first program. NOTE:  in the boxes below  the first two are NOT anagrams;  the next two ARE anagrams.

horsehouse

 
 


horsehouse 

 

 

StareteArs

 
 

 

 

1234554321

 
 

 

 

staretears

 
 

 

 


Think about why the following file WON'T WORK.

 

horse

house