How can I make user's input work on different methods in C#?

后端 未结 0 1294
醉梦人生
醉梦人生 2021-02-12 20:30

How could I make team1 in method1 work in method 2?

static void method1()
{
  string team1 = "";
  team1 = Console.ReadLine();
}
static void method2()
{         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题