Вопрос задан 25.06.2023 в 21:23. Предмет Информатика. Спрашивает Роллер Таня.

For given codes show result a. a=5/3 print(a) Result:____ b. a=5%3 #print(a) Result:____ c. a=700

print(a//60%24,a%60) Result:____
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Павел Лукьяненко.

Ответ:

Result: 1,6 ; 2 ; 12

0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Let's go through each of the given code snippets and determine their results:

a. a = 5 / 3 This code performs division, and 5 / 3 is a floating-point division operation. Result: 1.6666666666666667 (approximately)

b. a = 5 % 3 This code uses the modulo operator %, which calculates the remainder when 5 is divided by 3. Result: 2

c. a = 700 a // 60 calculates the number of whole minutes in 700 minutes when divided by 60, which is 11 hours (700 minutes / 60 minutes per hour = 11.666...). a % 60 calculates the remaining minutes after removing the 11 hours, which is 40 minutes. Result: 11 40

Please note that for part b, you mentioned #print(a), which is a comment and doesn't affect the result. If you remove the # symbol and actually print the result, it will be 2.

0 0

Похожие вопросы

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос