Hi this is from a previous test and i was wondering how to do it thank you We can define the distance between two strings as the number of positions at which the corresponding characters are different. For example, the distance between the strings “find” and “fund” is 1 since only the
Write a program that will input two strings from the user and will determine and output the distance between the strings i.e. how many characters, in corresponding positions of each string, are the different. Your program must output only the distance as defined above.
“karolin” “kathrin” distance 3 positions 2,3,4
“karolin” “Kerstin” distance 3 positions 1,3,4 etc
“1011101” “1001001” 2 2,4
“2173896” “2233796” 3 1,2,4
“ABCD” “ABCDEF” 2 4,5
“efghi” “efg” 2 3,4
“The quick!” “the Quick?” 1 9