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

what ius the output of double a= (double) (12/5) Systenoutprintln (a)

Respuesta :

joaobezerra joaobezerra
  • 13-10-2019

Answer:

Command: Systenoutprintln (a)

Output: 2.4

Explanation:

The output is going to be the result of the division, since double variables work with decimal parts.

12 divided by 5 is integer part 2 with modulus 2. So

12/5 = 2 mod 2 = 2 + 2/5 = 2 + 0.4 = 2.4.

The output is the result.

So

Command: Systenoutprintln (a)

Output: 2.4

Answer Link

Otras preguntas

Adherence to a strict interpretation of the Constitution would have prevented President Thomas Jefferson from a. making the Louisiana Purchase. b. writing the "
how much does. a box of paper clip weigh with amass of 1kg.
Some STIs can be transmitted through a handshake ? T or F
Which of the following makes a true statement about U.S. foreign policy? It is the secretary of state who makes all the important decisions related to foreign p
Of the muscles listed, which is NOT in the upper body? A. trapezius B. glutes C. latissimus dorsi
list some features that tell you a document is an email
you lift a 45N bag of mulch? 1.2meters and carry it a distance of 10 meters how much work was done
wht is the solarsystem
Why were the Rosenbergs tried and executed
Two vertices of a right triangle are (0,1) and (0,6). The area of the triangle is 10 square units. Which point could be the third vertex of the triangle?