Ask Question

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

+1
Answers (1)
  1. 7 June, 18:55
    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 & 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