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

what is the output of inta= (int) 12.0 / 5 Systemoutprintln (a)

Respuesta :

joaobezerra joaobezerra
  • 13-10-2019

Answer:

Command: System.out.println (a)

Output: 2

Explanation:

The output is going to be only the integer part of the division.

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

12/5 = 2 mod 2

The output is only the integer part. So

Command: System.out.println (a)

Output: 2

Answer Link

Otras preguntas

Can someone help me Question 1 (5 points) Saved (06.01 LC) The value of 33 + 42 = ___. (5 points) Question 1 options: 17 Question 2 (5 points) Saved (06.01 M
What conditions did Dorothea Dix help to reform?​
2/6, 5/12, 3/7, and 4/10. List least to most
After the assassination of Archduke Ferdinand in 1914, how did Austria-Hungary respond? (What did they want to do to Serbia?) From which country did they find s
The french revolution (1789) began due to
A Ferris wheel is 23 meters in diameter and boarded from a platform that is 3 meter above the ground. The six o'clock position on the Ferris wheel is level with
Please help I'll give brainliest
whats the answer to this?​
Can you help me with history?
stalin's 5 year plan was to