Using of the Loops

Using of the Loops - Mensajes

#1 Publicado: 17/2/2009 20:38:52
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: 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 Publicado: 5/7/2009 13:37:46
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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!"
  • Nuevos mensajes
  • Sin mensajes nuevos