(int m, int n)
| 4 | private int x, y; |
| 5 | // Function to set the values of x and y - |
| 6 | public void set(int m, int n) { |
| 7 | x = m; |
| 8 | y = n; |
| 9 | } |
| 10 | // Function to display the product along with the values of x and y - |
| 11 | public void display() { |
| 12 | System.out.println("The value of x = " + x); |