Question: what is difference between function and procedure?
Answer: A function is used to calculate result using given inputs. A procedure is used to perform certain task in order. A function can be called by a procedure. A procedure cannot be called by a function.