astakhovavictoria
21.04.2020 13:30

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​

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
nobos9n
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)

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота