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

User Beaslera
by
6.2k 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.

User Derigible
by
5.1k points