StrictMath.multiplyFull(): This method is available in java.lang.StrictMath class of Java.
Syntax:
long java.lang.StrictMath.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.
Exceptions: NA
Approach
Java
public class StrictMathmultiplyFull {public static void main(String[] args) {int x = 186, y = 19;System.out.println(StrictMath.multiplyFull(x, y));}}
Output:
3534
No comments:
Post a Comment