Program to compare two strings

Write an algorithm to compare two strings. Check if they are equal or not. If equal return True. Else False.

Example


If string1 is "codela" and string2 is "cdl" output return must be False.

Contributed by Erkan Ercan