function in programming are not like math functions
a function in programming is an operation you perform on data, normally a simple task that can be split in its own block of code
it doesnt necessarly need ot return anything(tho in most cases it should even if its only to debug itself) since often all you need from the function was the operation it did on the variables that can be taken over by another part of the code, not their actual result.
Latest Answers