运行下面程序,若从键盘输入字母“b”,则输出结果是char c;c=getchar();if(c>='a'&&c<='u')
运行下面程序,若从键盘输入字母“b”,则输出结果是 char c; c=getchar(); if(c>='a'&&c<='u')c=c+4; else if(c>='v'&&c<='z')c=c-21; else printf("input error!\n"); putchar(c);
A.g
B.w
C.f
D.d
运行下面程序,若从键盘输入字母“b”,则输出结果是 char c; c=getchar(); if(c>='a'&&c<='u')c=c+4; else if(c>='v'&&c<='z')c=c-21; else printf("input error!\n"); putchar(c);
A.g
B.w
C.f
D.d
运行下列程序,若从键盘输入字母“a”,则输出结果是()。 char c; c=getchar(); if(c>='a'&&c<='g') c=c+4; else if(c>='g'&&c<='z') c=c-21; else printf("input error!\n"); putchar(c);
A.f
B.t
C.e
D.d
下面程序中,若从键盘输入大写字母C,则程序的输出结果是______。 import java.io.*; public class Test{ public static void main(String args[ ]){ int ch=0; System.out.println("Please input a character:"); try{ ch=System.in.read(); char ch_A='A',ch_Z='Z'; int delta_c=(int)ch_A+(int)ch_Z-ch; System.Out.println("the encoded character is:"+(char)delta_C); }catch(IOException e){e.printStackTrace();} } }
A.C
B.Y
C.X
D.字母C的ASCII码的整型值
B、x <y>
C、5>3
D、3<5>
执行下面程序时,若从键盘输入"3<cr>"(CR表示回车键),则程序的运行结果是(). #include <stdio.h> int main() { int i; char c; c=getchar(); if(c>=’0’&&c<=’9’) i="c-’0’;" else if(c>=’a’&&c<=’f’) i="c-’a’+10;" else printf("%d\n",i); return 0;> A、2
B、3
C、4
D、10
若从键盘输入65 14<cr>,则下面程序的运行结果是 。 #include<stdio.h> main() {int m,n; printf("Enter m,n:"); scanf("%d%d",&m,&n); while(m!=n) {while(m>n) m-=n; while(n>m) n-=m; } printf("m=%d\n",m); }
A.2
B.4
C.1
D.10
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!