The fifth workshop for Thinking Like A Programmer is now available. Do be sure to do the earlier workshops first, however – at least make sure you have bronze medals on these before attempting this one.
Follow this link to log in and do the workshop.
Why does this function is not good for the silver option on workshop 5 it works great and does what they ask.
function count
for count = a to b
display count
endfor
endfunction
get a
get b
call count
I am currently standing on the table!
If you don’t know what that means, then
a) You don’t understand what is meant by function parameters
b) You haven’t been attending all the lectures and workshops!
I would be perhaps giving it away to point out that the exercise asks you to write a function with two parameters and your function has none. So I won’t point that out!
ok thanks