Computer Science, asked by Keerthana162003, 1 year ago

What will be the value of variable k after execution of following statements.

Attachments:

Answers

Answered by Bond54132
1

the answer is k=1

the first condition in the if statement will be false

but the second condition is true

since the operator in the if statement is or

the if statement is satisfied by the second case

hence k=1


Bond54132: i hope you mark it as the brainliest
Keerthana162003: how do I do it.. I'm new to this app
Bond54132: what do you need to do
Keerthana162003: to mark you the brainliest. how do I do it
Bond54132: since i am the only person who has answered this question u can not currently mark me as the brainliest
Bond54132: u can mark after another person answers this question or you will get a notification after 2 days or so to mark an answer as brainliest
Bond54132: did u understand my answer for the question
Keerthana162003: Yes I did understand. thankyou for helping me in this
Bond54132: thanks a lot :)
Similar questions