Write a statement that toggles the value of the bool variable onOffSwitch . That is, if onOffSwitch is false , its value is changed to true ; if onOffSwitch is true , its value is changed to false .

Write a statement  that toggles the value  of the bool variable  onOffSwitch . That is, if onOffSwitch is false , its value  is changed to true ; if onOffSwitch is true , its value  is changed to false .

LANGUAGE: C++

CHALLENGE:

Write a statement  that toggles the value  of the bool variable  onOffSwitch . That is, if onOffSwitch is false , its value  is changed to true ; if onOffSwitch is true , its value  is changed to false.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level