如果month=4,下面代码的输出结果是( )int days=0;switch(month){case 2:days=28;break;case 4:case 6:case 9:case 11:days=30;break;default:days=31;break;}Console.WriteLine(days);
相似题目
-
当month等于6时,下面代码的输出结果是()。https://assets.asklib.com/psource/2015052214202427513.jpg
-
定义如下变量和数组: int i; int x[3][3]={1,2,3,4,5,6,7,8,9};则下面语句的输出结果是()。 for(i=0;i<3;i++) printf("%d",x[i][2-i]);
-
如果x=35,y=80,下面代码的输出结果是()。 https://assets.asklib.com/psource/2015052214211130840.jpg https://assets.asklib.com/psource/2015052214213014441.jpg
-
7.下面程序的输出结果是#include int func(void);int main(void){int i, s;for (i = 0; i < 4; i++) s = func();printf(%d , s);return 0;}int func(void){static int x = 6;x++;return x;}
-
下面代码输出什么结果?( )(使用除法在python里会产生一个十进制浮点数)>>>(4+8)/2
-
下面代码输出什么?( )>>>int(“3”+”4”)
-
下面程序运行时,如果输入:123456,则输出结果是____。#includevoid main(){ int a,b;scanf('%2d%3d',&a,&b);printf('a=%d b=%d ',a,b);}
-
定义如下变量和数组: int k; int a[3][3]={1,2,3,4,5,6,7,8,9,}; 则下面语句的输出结果是( ) for(k=0;k<3;k++) printf( “ %d ” ,a[k][2-k]);
-
下面程序段的输出结果是int i, a[2][2] = {1,2,3,4};for(i=1; i>=0; i--) cout<
-
下面程序段的输出结果是( )。 int i; int x[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) printf('%d ',x[i][2-i]);
-
下面程序的输出结果是 include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}
-
下面程序的输出结果是()。 func(int X) { static int a=2; return (a+=X);} main() { int b=2,c=4,d; d=func(b); d=func(c); printf("%d\n",d); }
-
有如下代码:int a=1;System.out.print In("a="+a);其输出结果是()。
-
【单选题】下面程序的输出结果是 main() { int a[ ]={1,2,3,4,5,6,7,8,9,0,},*p; p=a; printf("%dn",*p+9); }
-
下面程序的输出结果是( )。 main() {int a[]={1,2,3,4,5,6,7,8,9,0,},*p; p=a; printf("%d&92;n",*p+9); }
-
下面程序的输出结果是 () main() { int i,f1,f2; f1=f2=1; for(i=0;i<4;i+ +) { p
-
下面程序的输出结果是______。main(){int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a;ptintf("%d\n",*p+9
-
下面程序的输出结果是()func(int x){ static int a=2;return(a+=x);}rnain(){ int b=2,c=4,d;d=f
-
4、下面代码的输出结果是 for i in range(10): if i%2==0: continue else: print(i, end=",")
-
11、下面代码的输出结果是() sum = 1.0 for num in range(1,4): sum+=num print(sum)
-
下面代码输出结果是() int a = 0; while (a<5){ switch (a){ case 0; case 3:a = a + 2; case 1; case 2:a = a + 3; default:a = a + 5; } } System.out.println(a);
-
下面代码定义了一个日期类及其测试类,结合注释,请找出其中的7处错误。 public class Date { private int year, month, day; public void Date(int y,int m,int d) { //定义有参构造方法 year=y; month=m; day=d; } public Date(){ //定义无参构造方法 Date(2018,6,15); } public void setMonth(int month) {//给成员变量month赋值 month=month; } public int getMonth(){ returm month; } public void print(){ System.out.println("date is "+ this.year+"-"+this.month+"-"+this.day); } public void main(String args[]){ Date oday = new
-
定义变量和数组:int i, j; int a[3][3]={1, 2, 3, 4, 5, 6, 7, 8, 9}; 则下面语句的输出结果是()。 for(i=0; i<3; i++) for(j="i;" j++)> <<' ';>
-
21、下面代码的输出结果是: a=1.0 if isinstance(a,int): print("a is int") else: print("a is not int")