Computer Science, asked by srinidhiayyappan7198, 6 months ago

Evaluate the following expression and write the output. print(12 %5*3+(2*6) // 4)

Answers

Answered by seemaajaz918
1

Answer:

a917362872 29y3738291

Answered by allysia
3

Answer:

9

Explanation:

The priorities of operators in python are as followed:

  • ()
  • ^ or * *
  • /, // , %, *
  • +,-

Using that,

we solve it in the following order:

  • (12 %5*3+(2*6) // 4)
  • (12 %5*3+12 // 4)
  • (2*3+12 // 4)
  • (6+12 // 4)
  • 6+3
  • 9
Similar questions