Given that i = 8, j = 10, k = 8, What willbe result of the following expressions?
(i) i <k
(ii) i<j
(iii) i >=k
(iv) i = =j
(v)j!=k
Answers
Answer:
Its i < j
Explanation:
Hope it helps ,
value of i = 8 , j = 10
Therefore 8<10 ,
Therefore i<j.
Thank You
Answer:
(i) False
(ii) True
(iii) True
(iv) False
(v) True
Explanation:
Given:- i = 8, j = 10, k = 8.
(i) i < k - Here we check if i is less than k. As we know 8 is not less than 8. So the expression results False.
(ii) i < j - As we know, 8 is less than 10. So, the expression results to True.
(iii) i > = k - Checking whether i is greater than or equal to k. 8 is not greater than 8 but they are equal. So, the expression results to True.
(iv) i = = j - Here we check if i is equal to j. 8 can never be equal to 10. So, the expression results to False.
(v) j ! = k - Checking if j is not equal to k i.e. 10 is not equal to 8. So, the expression results to True.
#SPJ3