pascal程序
program ex1; const p=3.1415926 var r:integer; s:real; begin readln(r); s:=p*r*r; write(s) end. 这个程序又有什么问题啊
没什么大问题,注意行间小写分号,如果你是在Delphi下编译,请在前面加上"{$apptype console$}"。 附完整代码: {$apptype console$} program ex1; const p=3.1415926; var r:integer; s:real; begin readln(r); s:=p*r*r; writeln('s=',s:5:2); end.