Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Uppgift
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
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 14.29
Division
Svep för att visa menyn
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Uppgift
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
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 14.29Avsnitt 2. Kapitel 5
single