We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
var i;
var countApples = 0;
var countOranges = 0;
for (i = 0; i < apples.length; i++) {
if (a + apples[i] >= s && a + apples[i] <= t) {
countApples += 1;
}
}
for (i = 0; i < oranges.length; i++) {
if (b + oranges[i] >= s && b + oranges[i] <= t) {
countOranges += 1;
}
}
console.log(countApples);
console.log(countOranges);
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
What do you guys think?