What is the output of the following code? a = 11 b = 3 print (a // 2 % b + 10 / 2 + 2 ** 2)
a. 9 b. 10 c. 11 d. 12 e. 13​

Дмитрий111111112222 Дмитрий111111112222    1   15.03.2021 10:10    0

Ответы
ksenia721 ksenia721  14.04.2021 10:13

ответ: c.11

Объяснение: I think u know what is variable

// - is a division by discarding remainder.

% - is a remainder of the division

/ - is a division.

** - is an exponentiation.

1st term equals 2:

a // 2 % b = 11 // 2 % 3 = 5 % 3 = 2

2nd term equals 10/2=5

3rd term equals 2**2=4

Sum equals 2+5+4=11.

print() is an operator to output text or number in the brackets (in this code it’s a sum)

ПОКАЗАТЬ ОТВЕТЫ
Другие вопросы по теме Информатика