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

Gravity and friction are two kinds ofa.inertiab.forcesc.massesd.gravity
What is the puritan revolution?
Solve this proportion 10/8=n/10
What does the phrase "a grave injustice " mean??
The _______ stated that if war should break out between Germany and the U.S, Mexico would be urged to side with Germany and to attack the U.S.a. Hindenburg Not
what does spit mean in colonial times
Use elimination to solve this system of equations. 2r + 3s= 9 and 3r + 2s= 12
If a heterozygous plant seed color (Rr) is crossed with a homozygous recessive plant (rr), what is the probability of each seed color being produced?
The area of the banner is 144 square feet. The width of the banner is 1/4 the length of the banner. What are the dimensions of the banner?
What property justifies the following statement?If 4x+6=20, then 4x=14.