分析下面的PASCAL程序,给出正确的运行结果() PROGRAM mx(input,output); VAR R,s,t:integer; PROCEDURE change(a,b:integer); VAR T:integer; BEGIN A:=3*a; B:=2*b; T:=a+b; End; BEGIN R:=2;s:=4;t:=6; Change(r,s); Writeln(‘r=’,r,’s=’,s,’t=’,t)End.
- A、r=2 s=4 t=6
- B、r=2 s=4 t=14
- C、r=6 s=8 t=6
- D、r=6 s=8 t=14
正确答案:A
答案解析:有

微信扫一扫手机做题