QUESTION IMAGE
Question
question 3
you need to write a program where karel will take a ball if there is a ball present, otherwise karel should put down a ball.
which control structure do you need to use?
for loop
while loop
if statement
if/else statement
none of these
Brief Explanations
The task is to perform one action if a condition (ball present) is true and another if false. An if/else statement is used for such conditional - based actions.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. If/Else statement