Mastery16

Using conditionals is really useful when you want to execute an action depending of the result of other action; to do that we use “if” and “else” conditional; but when you want to validate more than one condition you have to use “else if” conditional.

First of all we need to know what is the structure for this conditonals, in this link you will find a pp that explain “else” and “else if” conditionals with detail:

https://drive.google.com/file/d/0B-NM4ghaDXBvX3VSc3NZY3lzaEE/view?usp=sharing

The following picture shows a c++ code using conditionals.

Finally, I found information about that in this link:

http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm

CC BY 4.0 Mastery16 by Tania Pardo is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.