mick9759 mick9759
  • 09-10-2019
  • Computers and Technology
contestada

what is the output of doublec= 12.0 / 5 Systemoutprintln (c)

Respuesta :

ExieFansler ExieFansler
  • 10-10-2019

Answer:

The code will produce:-

2.4

Explanation:

In this code the result of the arithmetic operation is stored in the variable c.On evaluating the expression it divides 12.0 by 5 which results in 2.4 and it is stored in float variable c.Then it is printed on the screen using print statement.Since the c is double variable so the result will be a decimal number.

Hence the answer is 4.

Answer Link

Otras preguntas

Which of the following human activities might eventually result in secondary succession? Group of answer choices A campfire is left unattended, and a forest f
At December 31, Gill Co. reported accounts receivable of $236,000 and an allowance for uncollectible accounts of $1,900 (debit) before any adjustments. An analy
Select the property that allows the statement 10 = yto be written y= 10.
Each interior angle of a regular polygon is 120 greater than each exterior angle calculate the number of sides
What is the slope of (0,2) and (-8,-8)?
What is the solution to 3(2x-1)=(6x+5)
What if the area of a triangle is 54 square inches, what is the height of the triangle?
What is the Vietnam syndrome
What is -3+-5 - -6 equal?
Simplify -6 to the fourth power