C++ Program:

- To run both if and else

#include <iostream>
using namespace std;

int main() {
  if(!(cout<<"I am if")){}
  else cout<<"\nI am else";
  return 0;
}

Output:

  I am if
  I am else
Program
puzzle
if(!(cout<<"I am if")){}   // only ! of 0[ZERO] is true
else cout<<"\nI am else";

Here the 'if' statement condition become false & it will print 'else' portion, but while checking 'if', it will print 'cout' statement inside 'if'

Concept

Coming Soon !

Quick
Tutorial

Quote

The best preparation for good work tomorrow is to do good work today.