Mega Code Archive
Categories
/
C++ Tutorial
/
Operators Statements
Use And operator to connect two boolean expressions
#include
int main() { int i1, i2; i1 = 4; i2 = 2; if ((i1 != 0) && (i2 != 0)) std::cout << "Both are not zero #1\n"; return (0); } Both are not zero #1