pascal语言“s:=s+i/((i-3) div2);”哪错了; i,s均为real; 它说“got "Real" expected "Longint"

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 10:35:35
pascal语言“s:=s+i/((i-3)div2);”哪错了;i,s均为real;它说“got"Real"expected"Longint"pascal语言“s:=s+i/((i-3)div2);

pascal语言“s:=s+i/((i-3) div2);”哪错了; i,s均为real; 它说“got "Real" expected "Longint"
pascal语言“s:=s+i/((i-3) div2);”哪错了; i,s均为real; 它说“got "Real" expected "Longint"

pascal语言“s:=s+i/((i-3) div2);”哪错了; i,s均为real; 它说“got "Real" expected "Longint"
div 是整数间的除法,换成 / 试试看.