Boolean prob

This is a discussion on Boolean prob within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm quite new to cpp programming, and I made this small script using Dev-C++.
Code:
#include <iostream>
using namespace ...

Problem here is, if I enter 0, it should be printing World Hello instead of Hello World, which doesn't happens. Ofcourse I could easily solve this by adding a NOT operator, but I want to know about the AND and OR operators in specific. Could someone help me out?