I am not sure but I think that it is either the First option or the Third option but you would probably need more information.
Answer:
i think you can layer it :)
Explanation:
nice drawing btw!
Answer:
21212122121221212211212121212212121Explanation:
Answer:
Explanation:
The following procedure is written in Python. It takes the next argument, checks if it is an odd number and if so it adds it to oddsum. Then it asks the user for a new number from the keyboard and calls the accumulator procedure/function again using that number. If any even number is passed the function terminates and returns the value of oddsum.
def accumulator(next, oddsum = 0):
if (next % 2) != 0:
oddsum += next
newNext = int(input("Enter new number: "))
return accumulator(newNext, oddsum)
else:
return oddsum