问题 更新时间2023/6/10 22:20:00 请阅读下面程序,并填写运行结果:下面是一个函数F的程序代码。Function F(n:integer); //函数声明Var i,s:integer;Begin s:=0; For i:=1 to n //循环 s:= s+i; //累加 result:=s; //返回计算结果End;当n为5,该函数的返回值为 。A、10B、5C、20D、15 答案 登录 注册 D 出自:国家开放大学 >> 国家开放大学Delphi程序设计