Tag Archives: #lol

Mastery18

 

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;

}

WSQ05

1 min read

FINALLY #ITWORKED #lol #finally #ihatecygwin #justkidding #WSQ05 #TC1017 here is my code btw…

#include

using namespace std;

int main ()

{

int i;

int c;

cout

cin >> i;

c=5 * (i-32)/9;

cout

if (c >= 100)

{

cout

}

else

{

cout

}

return 0;

}