Here's a little programming challenge for you: can you figure out the output of this code?

#Programming
💬 Chat with this Video
Ask anything about this video…
What's the output of this code? Think about it for a few seconds and then I'll give you the right answer and let you know why it's correct. And the right answer is B, 14. Why? Because the value of A is 6 and the value of B is 7. A is evenly divisible by 3? So we print twice the value of B. Twice the value of B is 7 multiplied by 2, which is 14. So that's why we get option B.

Generated algorithmically for Search Engine Indexing.

Summarize Another Video