Create the variables int numberMult = 50 and double numberDiv = 22.5 Create a method called numMult
Fantastic news! We've Found the answer you've been seeking!
Question:
Create the variables int numberMult = 50 and double numberDiv = 22.5
Create a method called numMult to multiply the number by itself and return the result. This method takes int (numberMult) as input and return int.
Create a method called numDiv to divide the numberDiv by 5.0 and return the result. This method takes double (numberDiv) as input and return double
Print the return from the methods numMult and numDiv
Related Book For
Posted Date: