samedi 25 avril 2015

ommiting else in algorithm

I found some related to my question, but not exactly fit.

In algorithm using if statement, as I know we can omit else statement when we have no execution for false against condition. For example, if A > B then (statement) end However, I want to know if we can omit only "else" like this. If A > B then (statement), (else omitting point) (statement2)

Is it ok to use like this?

Aucun commentaire:

Enregistrer un commentaire