Computer Science, asked by oliofficial004, 8 months ago

Write down the main function which calls the following function: int square(int a) { return(a*a); }

Answers

Answered by baghelrishabh154
4

Answer:

int main – 'int main' means that our function needs to return some integer at the end of the execution and we do so by returning 0 at the end of the program. 0 is the standard for the “successful execution of the program”.

Answered by Dragonboy5262
1

Here is your answer:

public static void main(String args[]) {

int sq = square(4);

}

Glad to help you out and Hope your problem gets solve! :)

Similar questions