知识库

一个ASP求平均分源码示例

来源: 本站    类别: 知识库    日期: 2015/7/1

 

用ASP求平均分源码

<%
dim fs(4),i,out_n
fs(0)=85
fs(1)=80
fs(2)=75
fs(3)=70
fs(4)=65
for i=0 to (ubound(fs))
  out_n=out_n+fs(i)
next
out_n = out_n/(ubound(fs)+1)
response.write "平均分为:"&"    "&out_n
%>


相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com