Computer Science, asked by Prachii1005, 5 months ago

What is a function? Write its three parts.​

Answers

Answered by DarshikaSingh992
0

Answer:

Function Body:

It consists of three parts: local variable declaration part, executable part and return statement. All the required variables are declared at the local variable declaration part. Executable part contains all the executable statements that performs actual task.

Answered by sarita1942
3

Explanation:

A technical definition of a function is: a relation from a set of inputs to a set of possible outputs where each input is related to exactly one output. ... We can write the statement that f is a function from X to Y using the function notation f:X→Y.

It consists of three parts: local variable declaration part, executable part and return statement. All the required variables are declared at the local variable declaration part. Executable part contains all the executable statements that performs actual task.

hope it helps

{20❤+follow=Inbox}

Similar questions