Write a program that prompts the user to enter two strings and displays the largest common prefix

Question:

Write a program that prompts the user to enter two strings and displays the largest common prefix of the two strings. Here are some sample runs:

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: