this Mastery might sound too complicated but in fact it is too easy to regard this mastery is known in Spanish as conditional nested , and no forces have to be an if as it is not the only type of conditional exists, nested conditional may be of different types such as:
if / else
for
while
switch
do
which can be nested ( put inside other ) as often as desired. for instance:
using namespace std;
int main(){
int uno;
cout
cin>>uno;
if (uno!=0){
if(uno
cout
}
else
{
cout
}
}
else
{
cout
}
return 0;
}
#mastery18 by Rodrigo Tapia is licensed under a Creative Commons Attribution 4.0 International License.