Computer Science, asked by rammishra633, 3 months ago

write valid statements for the following in
Print the rounded off value of 234.49
Print the absolute value of -9.99
Print the largest of -45 and -50
Print the smallest of -56 and -57.4
Print a random integer between 50 and 70
Print 10.5 raised to the power 3.8​

Answers

Answered by BrainlyProgrammer
4

Java statement for the following:-

  1. Print the rounded off value of 234.49
  2. Print the absolute value of -9.99
  3. Print the largest of -45 and -50
  4. Print the smallest of -56 and -57.4
  5. Print a random integer between 50 and 70
  6. Print 10.5 raised to the power 3.8

Answer:-

1.Math.round(234.49)

2.Math.abs(-9.99)

3.Math.max(-45,-50)

4.Math.min(-50,-57.4)

5.(int)(Math.random()*(70-50))+50

6.Math.pow(10.5,3.8)

Learn more about math functions:-

  • https://brainly.in/question/31965436?utm_source=android&utm_medium=share&utm_campaign=question
Similar questions