when can you use a function. firstly let's talk about function. a function from a set X to a set Y is an assignment of an element of Y to each element of X. The set X is called the domain of the function and the set Y is called the codomain of the function. Functions were originally the idealization of how a varying quantity depends on another quantity.
Courtesy: Wi ki
WHATCANYOUUSEFUNCTION?
for self contained" modules of code that accomplish a specific task. Functions usually "take in" data, process it, and "return" a result. Once a function is written, it can be used over and over and over again. Functions can be "called" from the inside of other functions.
Groups of statement that appear more than once in a program should generally be made into from the user multiple times in the same way, that a great candidate for a function.
Answers & Comments
when can you use a function. firstly let's talk about function. a function from a set X to a set Y is an assignment of an element of Y to each element of X. The set X is called the domain of the function and the set Y is called the codomain of the function. Functions were originally the idealization of how a varying quantity depends on another quantity.
WHAT CAN YOU USE FUNCTION?
for self contained" modules of code that accomplish a specific task. Functions usually "take in" data, process it, and "return" a result. Once a function is written, it can be used over and over and over again. Functions can be "called" from the inside of other functions.
Answer:
Groups of statement that appear more than once in a program should generally be made into from the user multiple times in the same way, that a great candidate for a function.
Explanation:
Hope its help<3