asked 161k views
5 votes
Guess the output of this code:print( (3**2)//2 )

asked
User Beaslera
by
9.3k points

1 Answer

7 votes

Answer:

Assuming that's in python, the answer would be 4

Step-by-step explanation:

The ** operator is for raising a number to a power.

The // operator returns the number of times the right number can fit into the left (i.e round division).

So the answer would be three squared over two rounded down, or 4.

answered
User Derigible
by
7.9k points

No related questions found