// squre program
class squ
{
void calc(int x)
{
int y;
y = x*x;
System.out.println("Square : "+y);
}
public static void main(String arg[])
{
squ a = new squ();
a.calc(5);
}
}In this program, easy to understand square program.
