• 2022-06-12 问题

    下列程序的运行结果是()classProgramx=0,y=-1;{publicstaticvoidMain(string&#91;&#93;args){inti=0,s=1;do{s/=s+1;i++;}while(i<=10);Console.WriteLine(“i={0},s={1}”,i,s);

    下列程序的运行结果是()classProgramx=0,y=-1;{publicstaticvoidMain(string&#91;&#93;args){inti=0,s=1;do{s/=s+1;i++;}while(i<=10);Console.WriteLine(“i={0},s={1}”,i,s);

  • 1