Write the output for the following . System.out.println(Math.sqrt(Math.pow(8,2))); System.out.println(Math.cbrt(Math.pow(8,2))); System.out.println(Math.ceil(Math.max(7.8,-9.2))); System.out.println(Math.floor(Math.min(8.7,-4.5))); System.out.println(Math.sqrt(Math.abs(-121))); System.out.println(Math.sqrt(Math.round(9.2))); System.out.println(Math.round(Math.ceil(83.2)));
Answers
Answered by
1
Answer:
8
4
8
4
11
3
84
Explanation:
println prints your line, which is used in the entire program( one thing to make sure is you've done all you template coding by importing all modules and putting these in main)
Math.pow(a,b)
gives a to the power of b
Math.sqrt(a)
gives square root a
Math.cbrt(a)
gives cube root a
Math.ceil(a)
rounds up a
Math.floor(a)
rounds down a
Math.min(a,b)
gives smallest number
Math.max(a,b)
gives largest number
Math.round(a)
Rounds off a
using these, you can get the answers so provided.
Answered by
0
Hope this help you
mark me as brainliest
Thank you❤
Attachments:
Similar questions