Answer:
Written in Python
print("Enter strings: ")
str1 = input()
str2 = input()
if len(str1) == len(str2):
for i in range(0,len(str1)):
print(str1[i]+str2[i], end='')
else:
print("Error")
Explanation:
Prompts user for two strings
print("Enter strings: ")
The next two lines get the input strings
str1 = input()
str2 = input()
The following if condition checks if length of both strings are the same
if len(str1) == len(str2):
If yes, this iterates through both strings
for i in range(0,len(str1)):
This prints the the characters of both strings, one character at a time
print(str1[i]+str2[i], end='')
If their lengths are not equal, the else condition is executed
else:
print("Error")