计算10以内偶数个数private void button1_Click(object sender, EventArgs e){ int x=0,y=0; do { x=x+1; if (x%2!=0) ____ ;y=y+1; }while(____);label1.Text=“y=”+y;} 程序运行结果为:____
查看答案
写出以下程序运行结果static int[] a = { 1, 2, 3, 4, 5, 6, 7, 8 }; public static void Main() { int s0, s1, s2; s0 = s1 = s2 = 0; for (int i = 0; i < 8; i++) { switch (a[i] % 3) { case 0: s0 += a[i]; break; case 1: s1 += a[i]; break; case 2: s2 += a[i];break; }} Console.WriteLine(s0 + " " + s1 + " " + s2); } 程序运行后输出结果为:____
写出以下程序运行结果public static void Main () { int s=0; for (int i=1; ____; i++) { if (s>50) break; if (i%2==0) s+=i; } Console.writeLine ("s=" + s); } }程序运行后输出结果为:____
- I'd like to book a room, please.- _______
A. Single or double?
B. Good or bad?
C. Which room?
D. We don't have books here.
-Hello! Can I get a seat on the 8 pm flight to Detroit?- _______
A. Hello! International Airline
B. You'd better look up the schedule first
C. I'm sorry, but it's completely booked
D. I'm afraid you have to change