62,872 views
34 votes
34 votes
NEED HELP ASAPPP

what will this code output?

print(9//2)

User Omnomnom
by
1.8k points

1 Answer

14 votes
14 votes

Answer:

The output depends on the programming language;

'//' in many languages means comment (javascript, C, C++, etc.)

In that case, this would return an error.

If the programming language does not use '//' for comments (e.g., Python) this will output a boolean 1 because '//' is not an operator.

User Eel Lee
by
2.8k points