Answers for "what to do if a if statement in c++ is not working"

C++
0

if not c++

#include <iostream>
using namespace std;

bool state = false;

if (state != true) { //Boolean is false.
  cout << "No";
} else { //Boolean is true
  cout << "Yes";
}
Posted by: Guest on December-04-2020

Code answers related to "what to do if a if statement in c++ is not working"

Browse Popular Code Answers by Language