Problem2200--Write an if-else statement

2200: Write an if-else statement

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 116  Solved: 90
[Submit] [Status] [Web Board] [Creator:]

Description

Write an if-else statement using a C-string function that reports whether two C-strings variables contain the same C-string.

Input

two strings that probably contain whitespace

Output

the maximum-length substring which is contained by two strings. If there are multiple substrings of the same length, choose the one that appears earliest in the first string.

Sample Input Copy

hello, how are you?
hi, how are u?

Sample Output Copy

, how are 

Source/Category

36