Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Opgave
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 14.29
Division
Stryg for at vise menuen
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Opgave
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 5
single