Skip to content

HW_Seminar_2#1

Open
tvkalex wants to merge 4 commits intomainfrom
HW_Seminar2
Open

HW_Seminar_2#1
tvkalex wants to merge 4 commits intomainfrom
HW_Seminar2

Conversation

@tvkalex
Copy link
Owner

@tvkalex tvkalex commented Sep 12, 2023

No description provided.

# Выведите минимальное количество монет, которые нужно перевернуть.

n = int(input('Введите число монеток: '))
from random import randint

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from random import randint
все импорты строго в начале

a += 1
print(x, y)
if a == 0:
print('Вы ввели некорректные данные!')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

while res < n + 1:
print(res, end=' ')
k += 1
res = 2 ** k

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants