Question Question Write an if-else statement to describe an object. Print “Balloon” if isBalloon is true and isRed is false. Print “Red balloon” if isBalloon and isRed are both true. Print “Not a balloon” otherwise. End with newline.(Notes) THIS IS IN C++ 1 2 3 4 5 6 7 8 9 10 11 #include usingnamespacestd;intmain(){boolisRed=false;boolisBalloon=false;/* Your solution goes here */return0;} Run Print “Balloon” if isBalloon is true and isRed is false. Print “Red balloon” if isBalloon and isRed are both true. Print “Not a balloon” otherwise. End with newline.(Notes) THIS IS IN C++ 1 2 3 4 5 6 7 8 9 10 11 #include usingnamespacestd;intmain(){boolisRed=false;boolisBalloon=false;/* Your solution goes here */return0;} Run
Question
Write an if-else statement to describe an object. Print “Balloon” if isBalloon is true and isRed is false. Print
“Red balloon” if isBalloon and isRed are both true. Print “Not a balloon” otherwise. End with newline.(Notes)
THIS IS IN C++
1 2 3 4 5 6 7 8 9 10 11 #include <iostream>usingnamespacestd;intmain(){boolisRed=false;boolisBalloon=false;/* Your solution goes here */return0;}
Run