1(v)
What is the output of the statement Math.pow(36, 6/5); ?
- (a)36.0
- (b)1.0
- (c)73.71
- (d)6.0
Show SolutionHide Solution↓
36.0
Reason — In the expression Math.pow(36, 6/5), the division 6/5 is performed first using integer division, which results in 1 (not 1.2). Therefore, the expression becomes Math.pow(36, 1), which evaluates to 36.0 since the pow() method returns a double value.