📜  在c#代码示例中添加两个数字

📅  最后修改于: 2022-03-11 14:48:58.890000             🧑  作者: Mango

代码示例3
int a = 1039; 
int b = 7056; 
int newNumber = int.Parse(a.ToString() + b.ToString());
//Or
int newNumber = Convert.ToInt32(string.Format("{0}{1}", a, b));