Case 1 : Enter string 1 : hi Enter string 2 : hello Enter number of characters to be compared : 1 Compared strings are equal. Case 2 : Enter string 1 : 12345 Enter string 2 : 12345 Enter number of characters to be compared : 5 Compared strings are equal. Case 3 : Enter string 1 : saturday Enter string 2 : SATURDAY Enter number of characters to be compared : 5 String 2 is less than string 1.