请问各位大神我这个错在哪?需要改设么?谢谢
pascal吧
全部回复
仅看楼主
level 2
我爱天才菜鸟
楼主
我看了几遍,就是无法运行
2016年04月23日 12点04分
1
level 1
余墨白678♤
没有输出
2016年04月23日 13点04分
3
小戴戴44
并不一定要输出啊。。。
2016年04月24日 10点04分
level 7
enjoybchcy
楼主
你把第九行改成writeln,不是readln。
代码如下:
program abc;
var x:real;
y:integer;
begin
readln(x);
if x<1 then y:=1
else if x=1 then y:=2
else y:=3;
writeln('x=',x:5:2,'y=',y);
end.
2016年04月24日 09点04分
4
level 1
刺刀睾
梦想你的梦想到你想到的地方做你想做的自己吧,因为你只能活一次!
2016年04月24日 09点04分
5
level 7
小戴戴44
你确定第二个readln是readln?
2016年04月24日 10点04分
6
level 7
小戴戴44
read什么时候有场宽了。。。
2016年04月24日 10点04分
7
level 5
Hishio💕
writeln 打成 readln了
2016年07月27日 12点07分
9
1