pascal ";"expected but "."foundvar a,t:int64;begin readln(a);t:=a-3500;if t1500)and(t4500)and (t9000)and(t35000)and(t55000)and(t

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 22:53:44

pascal ";"expected but "."foundvar a,t:int64;begin readln(a);t:=a-3500;if t1500)and(t4500)and (t9000)and(t35000)and(t55000)and(t
pascal ";"expected but "."found
var a,t:int64;
begin readln(a);
t:=a-3500;
if t1500)and(t4500)and (t9000)and(t35000)and(t55000)and(t

pascal ";"expected but "."foundvar a,t:int64;begin readln(a);t:=a-3500;if t1500)and(t4500)and (t9000)and(t35000)and(t55000)and(t
var a,t:int64;
begin 
      readln(a);
      t:=a-3500;
      if t<=1500 then writeln(t*0.03);
      if (t>1500)and(t<=4500) then writeln(t*0.1);
      if (t>4500)and (t<=9000) then writeln(t*0.2);
      if (t>9000)and(t<=35000) then writeln(t*0.25);
      if (t>35000)and(t<=55000) then writeln(t*0.3);
      if (t>55000)and(t<=80000) then writeln(t*0.35);
      if t>80000 then writeln(t*0.45);
End.

每一个判断语句后面执行的命令只有一条,则可以省略begin...end,如果要执行的命令超过一条则需要使用.

最后一种情况,也要使用if判断,否则,前面无论那条判断成立输出结果后,到这里都会再次输出t*0.45的结果.

在Pascal ‘expected’什么意思 pascal中的 Incompatible types:got Double expected Smallint pascal a to b pascal pascal pascal! He came earlier than( ) A.being expected B.to be expected C.expecting D.expected麻烦把我祥解一下 he _______to speak a little louder to make himself______A.expected,hear B.was expected,hear C.expected,heard D.was expected,heard选哪个?为什么?中文意思是? I was glad when I finally received the book I ( ).A.had long expected B.was long expected C.has long expected D.had long been expected ____,the housing prices rose sharply one year laterA.As it expected B.As expected C.As was expected D.As we were expected pascal ;expected but .foundvar a,t:int64;begin readln(a);t:=a-3500;if t1500)and(t4500)and (t9000)and(t35000)and(t55000)and(t pascal语言“s:=s+i/((i-3) div2);”哪错了; i,s均为real; 它说“got Real expected Longint The rain _____to last until the end of this FridayA.expect B.expected C.has expected D.is expected为什么选B pascal 怎么把a+4b改成数学算式答案 pascal 求整数A除以B的循环节 He succeeded in solving all the problems( )A ,as expected B as expecting C than expected D that expected求详解,翻译 He______by us to make great progress.A.is expected B.expect C.will expect D.expected 怎么填? You're failed to do what you( )to and I am afraid the teacher will blame you.A.had been expected.B.will be expected.C.were expected.D.expected请懂得的人解答一下, The teacher told his students that they _______ to be useful men to the countryA.were all expected B.were all expecting C.all were expected D.all expected选A,为什么,expected和excpting有什么不一样? the number of spectators present at the final of the european championship___was well over eighty thousand.a whom we had expected b as we had expected c what we had expected d we had expected that