Psuedo code
Input Worm Length
Input Distance to Apple
distance to apple - length of worm = Moves to enter Apple
Distance <= worm Lenth enter apple.
Design a program that models the worm’s behavior in the following scenario:
1 answer