Ask Question
29 April, 08:39

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

+1
Answers (1)
  1. 29 April, 09:57
    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?
Get an answer to your question ✅ “What ius the output of double a = (double) (12/5) Systenoutprintln (a) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers