Computer Science, asked by megha2502, 9 months ago

help me out to write the program ​

Attachments:

Answers

Answered by kapoorshweta708
1
  1. Explanation:

class area

{

public static void main(int a)

{

int a=2;

int area=a*a;

System.out.println("Area of a square="+area);

}

}

Similar questions