Try
MessageBox.Show(a + "was your answer");
or
MessageBox.Show(string.Format("{0} was your answer", a));
Using
string.Format()
can be neater for multiple string variables and easier to change the string literal if you need to. See this SO question for a discussion on its use.
Your
MessageBox.Show(a, "was your answer");
throws the text to the title because the method signature of MessageBox.Show()
that takes two arguments is for:
public static DialogResult Show(
string text,
string caption
)
Displays a message box with specified text and caption.