Using of the Loops

Using of the Loops - 消息

#1 已发布: 2009/2/17 20:38:52
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Using of the For Loop.

Сalculation of the factorial with non built-in operator of SMath Studio ("!"), but with Program functions:

(download an example)
#2 已发布: 2009/7/5 13:37:46
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello Andrey,

I agree with OchkovVF that the "break" statement should be introduced for the breaking loops too. I think that even just unconditional break (which will leave "for" and "while" would be enough.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • 有新帖
  • 无新帖