Hi
I was wondering if this is appropriate use of the OR operand. I know there are lots of different types of or, but i'm just looking for the program to print if one or the other of the statements is true.
Thanks
Code:
#include <stdio.h>
int main(int argc, const char * argv[])
{
// insert code here...
int a; //example numbers!
int b;
int c;
int d;
a=1;
b=2;
c=3;
d=4;
if ( ( a < b ) OR ( c<d ) )
{
printf("Yes");
}
return 0;
}
Also, i'm getting a build error expecting a ) on the if line. I can add a ) even though i don't see why it would expect one but it still asks for ).
Thanks