You are viewing a single comment's thread. Return to all comments →
Basically the positionOfFallenOrange equals the positionOfOrangeTree plus the distanceFromTheOrangeTree
orangePosition = b + scan.nextInt();
Hope it makes sense :)
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
Basically the positionOfFallenOrange equals the positionOfOrangeTree plus the distanceFromTheOrangeTree
orangePosition = b + scan.nextInt();
Hope it makes sense :)