Ask Question

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

+3
Answers (1)
  1. 18 April, 23:34
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers