I have to write logical expressons in C for the following..
x is a negative integer which is greater than -2000
x is a positive integer which is not divisble by 10
x is an even number greater than 1000
m is a legitimate month number
The values in a, b and c are equal
The values in a, b and c are not all equal
I'm just wondering if i'm on the right track with these:
(x<0) && (x>-2000)
(x>0) && (x!%10)
(x%2==0) && (x>1000)
1 < m <12
a==b==c
! (a==b==c)