Answer:
Step-by-step explanation:
The following code is written in Java and does exactly what the question asks. The variables are long variables instead of integers because integer variables can only be a maximum of 2147483647 and the product of these two variables is much higher than that.
public static void main(String args[]) {
long x = 50000;
long y = x * x;
System.out.println(y);
}