Computer Science, asked by sanjaytodkar, 1 year ago

can we include a function while creating a formula?
subject :-Computer science

Attachments:

Answers

Answered by Chirpy
31

Yes, a function can be included while creating a formula.

A formula

A formula is an expression which tells the computer what mathematical operation to perform upon a particular value. It describes a calculation to be performed on one or more variables. It is provided in the form of a computer instruction.

A function

In a computer program a function is a block of code. It performs the tasks when asked to do so. A programming function has an input and an output. It contains instructions which are used to create the output from its input.

For instance, the input in a programming function may be an integer or number. The function may create the output by multiplying the input by two. So the output of the function would be double of the input.

Similar questions