Answers for "how to make a if that's not a if in cpp"

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 "how to make a if that's not a if in cpp"

Browse Popular Code Answers by Language