// 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);
}
}Java
Calculate Squre Program Using Java

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
