public static  void changemethod(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
Console.Write(a);
Console.Write(" ");
Console.Write(b);
Console.Read();
}

调用方法

changemethod(1,2);

输出结果:

2 1

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2021-08-04
  • 2022-12-23
  • 2022-02-03
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-12-29
  • 2021-10-20
  • 2021-06-01
  • 2022-12-23
相关资源
相似解决方案