Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/feed-rss2.php on line 8
‘#nowinhd’ Articles at Courses by Ken https://kenscourses.com/tc101winter2015 Facilitator of Learning Experiences Sun, 03 May 2015 08:55:24 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Mastery18 https://kenscourses.com/tc101winter2015/2015/mastery18-10/ Sun, 03 May 2015 08:55:24 +0000 https://carlosgreenprograms.withknown.com/2015/mastery18 Continue reading ]]>

 

Here is the youtube link to mastery 18: https://www.youtube.com/watch?v=CeLnp1FGiB4

So basically nested conditional statements allow us to create an if-else statement that validates more than two options for one variable, here is an example:

<iostream>

 

using namespace std;

int main(){

int a;

cout<<“give me a: “<<endl;

cin>>a;

if (a<0){

  cout<<“less”<<endl;

}else {

  if(a==0){

    cout<<“equals “;

  }else{

    cout<<“greater “;

  }

}

return 0;

}

]]>
https://creativecommons.org/licenses/by/4.0/