[cpl] [Tema1] Rolul IF / WHILE

Cosmin - Ioan PETRI?OR cosmin_ioan.petrisor at cti.pub.ro
Sat Oct 31 18:23:39 EET 2015


Hello,


Am vazut in manual, pag. 11, ca IF si WHILE sunt considerati operatori (mai mult decat atat, de acelasi rang). Fair enough.


Problema este ca in teste am observat expresii de genul: var = 2 + if ... then ... else ... end; and I'm ok with that. Dar ce nu am reusit sa deslusesc este daca si WHILE are acelasi statut, pentru ca am vazut doar blocuri WHILE independente.


So here comes my question: Putem folosi constructii WHILE in cadrul expresiilor, sau trebuie tratat separat de IF?


Numai bine,

Cosmin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/cpl/attachments/20151031/dcddabad/attachment.html>


More information about the cpl mailing list