Ask Question
2 May, 21:09

What ius the output of double a = (double) (12/5) Systenoutprintln (a)

+3
Answers (1)
  1. 2 May, 22:02
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What ius the output of double a = (double) (12/5) Systenoutprintln (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