Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Завдання
Swipe to start coding
- Set condition if the
y
equals the0
. - Set the
middle
variable. Themiddle
equals theleft + (right - left) // 2
. - Return the product of the
middle
and thesign
. - Update the
left
. Theleft
equals themiddle
. - Update the
right
. Theright
equals themiddle
. - Test the function with the
x = 9
andy = 3
.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 5
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Сумаризуйте цей розділ
Пояснити код у file
Пояснити, чому file не вирішує завдання
Awesome!
Completion rate improved to 14.29
Division
Свайпніть щоб показати меню
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Завдання
Swipe to start coding
- Set condition if the
y
equals the0
. - Set the
middle
variable. Themiddle
equals theleft + (right - left) // 2
. - Return the product of the
middle
and thesign
. - Update the
left
. Theleft
equals themiddle
. - Update the
right
. Theright
equals themiddle
. - Test the function with the
x = 9
andy = 3
.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 14.29Секція 2. Розділ 5
single