Write down the main function which calls the following function: int square(int a) { return(a*a); }
Answers
Answered by
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
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