#include <iostream> using namespace std; bool state = false; if (state != true) { //Boolean is false. cout << "No"; } else { //Boolean is true cout << "Yes"; }