> 数学 >
画出描述求1^2-2^2+3^2+...+99^2-100^2的值的程序框图
人气:426 ℃ 时间:2020-01-30 00:40:17
解答
不好意思,这里不好画图.
可以把伪代码转换为程序框图.
伪代码:
S←0
i←1
If i≤100 Then
If i mod 2 = 0 Then
S ← S-i*2
Else
S ← S+i*2
End If
i← i+1
Else
Print S
End If
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版