Change the line to;
Console.WriteLine("Adding Two Integer :" + (a1 + a2));
Otherwise the first addition that takes place is between "Adding Two Integer :" and
a1
, the result of which is another
string
. Then when you add
a2
to that you're concatenating again.
Hope this helps,
Fredrik