Get your newlines straight

Computer Science Level 2

C code snippet:


Python code snippet:

print('\n') #can also be "\n", it makes no difference

Let the number of newlines printed by the first code snippet (C) be \(a\) and that printed by the second code snippet (Python) be \(b\).

What's the value of \((a+b)\)?

Inspired while browsing 4chan's /sci/ board.

Problem Loading...

Note Loading...

Set Loading...