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

Why does the Internet play a vital role in health care? The Internet allows patient information to be easily stored and exchanged between doctors. The Internet
Given points A (-8,7) and B (6, -9), find the midpoint, M
3x*+5x + 2 + x + 2x2
6. (x - 4)(x + 4) = B) x + 16 C) X - 8x + 16 A)X? - 16 E) NOTA D) x' + 8x + 16
how is the nucleus adapted to its function​
Can observation be a good starting point the selection of a topic?
“Ok first I will fake my shot then i will drive and score a layup” is this 1st or 2nd person in the sence that the sentence is being said to himself in his mind
In 20 words or fewer, suppose you were an officer of the Virginia Company. How would you get more workers for Virginia? Help ?
does 0.0780 contain leading zeros
what is 3/4 + 5 ? explain how you did it?