若程序运行时输入A值为9,B值为18,则A的输出结果为 ______。
A.9
B.10
C.18
D.27
第1题:
已知字符A的ASCII代码值为65,以下程序运行时,若从键盘输入:B33<回车>。则输出结果是______。 #include "stdio.h" main() { char a,b; a=getchar();scanf("Xd",&b); a=a-'A'+'0';b=b*2; printf("%c%c\n",a,b); }
A.2 B
B.1 B
C.3 B
D.4 B
第2题:
若输入N,M的值分别为3,9,则Y2的输出结果为 ______。
A.7
B.9
C.12
D.3
第3题:
已知字符A的ASCII代码值为65,以下程序运行时若从键盘输入:B33<回车>,则输出结果是________。 main() { char a,b; a=getchar();scanf("%d",&b); b=b*2; printf("%cn",b); }
第4题:
有以下程序(说明:字符0的ASCII码值为48)
include
main()
{char cl,c2;
scanf(“%d”,&c1);
’ c2=cl+9:
prinif(“%c%c\n”,cl,c2);
}
若程序运行时从键盘输入48<回车>,则输出结果为 。
第5题:
已知字符A的ASCⅡ代码值为65,以下程序运行时若从键盘输入:B33<回车>.则输出结果是( )。
include
main()
{ char a,b;
a=getchar();scanf("%d",&B);
a=a-'A'+'0';b=b*2;
printf("%c%c\n",a,B);
}