Answers for "if not c++"

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

Browse Popular Code Answers by Language