Computer Applications

Write down the main method which calls the following method:


int square(int a)
{
    return(a*a);
}

User Defined Methods

68 Likes

Answer


public static void main(String args[]) {
    int sq = square(4);
}

Answered By

40 Likes


Related Questions