题目
第4题
A.ch=System.in.read();
B.ch=(char)System.in.read();
C.ch=(char)System.in.readln();
D.ch=(int)System.in.read();
第5题
A.ch=System.in.read();
B.ch=(char)System.in.read();
C.ch=(char)System.in.readln();
D.ch=(int)System.in.read();
第6题
A.mZ bPPk
B.my book
C.Ny Cook
D.My Book
第7题
有以下程序 main() { int s=0, a=1, n; scanf ("%d", &n); do { s+=l; a=a-2; } while (a! =n); print f ("%d\n" , s ); 若要使程序的输出值为2,则应该从键盘给n输入不敷出值是
A.-1
B.-3
C.-5
D.0
第8题
A.ch= System.in.read();
B.ch=(char)Systcm in.read();
C.ch=(char)System.in.readln();
D.ch=(int)System in.read();
第9题
A. ch=System.in.read:
B.ch=(char)System.in.read:
C.ch=(char)System.in.readln:
D.ch=(int)System.in.read;
第10题
下列程序中,要求从键盘接受字符输入,直到输入字符为“e”(注意是小写)时停止,并且将输入的字符(“e”之前的字符)显示在屏幕上。请将程序补充完整。
程序运行结果如下:
Keep typing,it will stop while enter 'e'...
ddfsofkjlvncozieowdsfadsf
ddfsofkjlvncozi
import java.io.*;
public class ex4_1 {
public static void main(String[] args) {
char ch;
System.out.println("Keep typing,it will stop while enter 'e'...");
try{
while((ch= _______)!='e'){
System._______;
}
}catch(IOException Joe){
System._______;
}
}
}
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!