multiplyFull(): This method is available in the Math class of Java.
Syntax:
long java.lang.Math.multiplyFull(int x, int y)
This method takes two arguments of type int as its parameters. This method returns the exact mathematical product of the arguments.
Parameters: Two parameters are required for this method.
x: the first value.
y: the second value.
Returns: the result.
For Example:
Math.multiplyFull(1991,17) = > It returns 33847.
Approach
Java
public class MultiplyFull {public static void main(String[] args) {int x = 1991, y = 17;System.out.println(Math.multiplyFull(x, y));}}
Output:
33847
No comments:
Post a Comment