import java.util.*;
class square
{
public static void main(String args[])
{
int i,res;
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number:");
i=sc.nextInt();
res=i*i;
System.out.println("The square is "+res);
}
}
class square
{
public static void main(String args[])
{
int i,res;
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number:");
i=sc.nextInt();
res=i*i;
System.out.println("The square is "+res);
}
}
No comments :
Post a Comment