predict the output
c=(40>7)?400:200;
Answers
Answered by
1
Answer:
400
Explanation:
This expression will first check whether the condition in the bracket is True or False. If true, it will give the first output (400) or if false, it will give the second output (200).
Here, 40 is greater than 7. Hence the result is True and the output is 400.
Similar questions