下面程序中,若从键盘输入大写字母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( );

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 14:44:35 免费下载:《单项选择》Word试卷

下面程序中,若从键盘输入大写字母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码的整型值

下面程序中,若从键盘输入大写字母C,则程序的输出结果是______。    import java.io.*;    public class Test

本题关键词:输出结果,面试程序,存货监盘程序,程序,竣工结算程序,封闭母线安装程序,工程施工程序,复苏程序,工作程序,建设程序;

微信扫码获取答案解析
下载APP查看答案解析