int n;
if (n != 1, 2,10)
{
cout << "Hello World";
}
the output should be "hello world" if "n" is "not equal" to 1 or 2 or 10.
that code doesnt work(hello world will still be the output even if "n" is equal to 1 or 2 or 10)..can any one help me wtih this??...i tried or, &&, n !=(1,2,10)...etc