Write logical expressions for the following conditions:
a ans:
x > 0
explantion:not negative means every number greater then zero is a positive number
b ans:
x % 7 == 0
explanation: x is a number which is multiple of 7.if we devide the number with 7 then if we get 0 then it was multiple of 7 like 14% 7 ==0 then 14 is 2*7 which is multiple one
c ans:
x > sum ( y + z)
explantion: x is greater then when we add two variables y+z
d ans:
x > y && x > z
explanation it x is greater then y and x is greater then z then only x is greatest one
e ans:
x < 99 && x > 49
explanation:it must need to accept these two conditions then only it will give correct output
Get Answers For Free
Most questions answered within 1 hours.