Menu

[solved] – Question 99425

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.
#include <iostream>
using namespace std;

int main() {
bool isRed;
bool isBalloon;

cin >> isRed;
cin >> isBalloon;

/* Your solution goes here */

return 0;
}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *