主题:对五个数求和,这么写不对么?
想对五个数求和
program dd
integer x(5)
real s
read(*,*)x(5)
s=0
do 10 I=1,5
s=s+X(I)**2
10 continue
write(*,*)s
end
program dd
integer x(5)
real s
read(*,*)x(5)
s=0
do 10 I=1,5
s=s+X(I)**2
10 continue
write(*,*)s
end
沙发
您尚未登录,请登录后再回复。点此登录或注册