Challenge for 3 ways to show an Algorithm
Challenge
What will the following algorithm return when given the following list of numbers: {1,2,3,5}
ttl = 0 //(assigns value of 0 to 'ttl')
for each number in numbers:
ttl = (ttl + number) //assigns new value to 'ttl'
return ttl
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.