下列程序的運(yùn)行結(jié)果是() classProgramx=0,y=-1; { publicstaticvoidMain(string[]args) { int i=0,s=1; do{s/=s+1;i++; } while(i<=10); Console.WriteLine(“i={0},s={1}”,i,s);
請(qǐng)寫(xiě)出下列代碼段的運(yùn)行結(jié)果 int x=0; int y=-1; if(x!=0) if(x>0)y=1; else y=0;
x=0,y=-1
請(qǐng)寫(xiě)出下列代碼段的運(yùn)行結(jié)果 int i=1,n=-1; if(i==0); n=100; Console.Write(n);
100