A.100<=x<=200
B.100
C.x>100 AND x<200
D.100<=x OR x<200
第1题
A.100<=x<=200
B.100<x<200
C.x>100 AND x<200
D.100<=x OR x<200
第2题
printf("%d",(x,y));
该程序片段的输出结果是( )。
A.200 B.100
C.100 200 D.输出格式符不够,输出不确定的值
第4题
A、200
B、150
C、100
D、50
第9题
import java.awt.*;
import java.applet.*;
/*
<applet code=Di9Ti width=200 height=100>
</applet>
*/
public class Di9Ti extends Applet
{
public void paint(Graphics g)
{
int x,y,r1=5,r2=4;
int count=0;
for(x=1;x<y;x++)
{
for(y=1;y<r1;y)
{
if(x*x+y*y<=r2*r2||x*x+y*y>=r1*r1)
break;
g.drawStdng("x="+x+"y="+y,20+count*80,20);
count++;
}
}
g.drawString("count="+count,20,40);
}
}
ex11_3.html:
<html>
<head>
<title>A Simple Program</title>
</head>
<body>
<applet code="Di9Ti.class"width=800 height=400>
</applet>
</body>
</html>
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!