Ask Question
3 October, 07:35

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

+3
Answers (1)
  1. 3 October, 11:17
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the output of inta = (int) 12.0 / 5 Systemoutprintln (a) ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers