Q-6Write the output.
System.out.println(Math.pow(4,2)* Math.floor(3.4));
Answers
Answered by
1
Given Snippet:
System.out.println(Math.pow(4,2)*Math.floor(3.4));
Output:
48.0
Explanation:
Math.pow(4,2)=16 as 4*4 is 16
Math.floor(3.4)=3.0 as rounding of 3.4 to value lower than it is 3.0
Now 16x3=48
And because the data type was double so 48.0.
Similar questions