Ask Question
13 March, 00:53

What is the output of doublec = 12.0 / 5 Systemoutprintln (c)

+4
Answers (1)
  1. 13 March, 02:47
    0
    The code will produce:-

    2.4

    Explanation:

    In this code the result of the arithmetic operation is stored in the variable c. On evaluating the expression it divides 12.0 by 5 which results in 2.4 and it is stored in float variable c. Then it is printed on the screen using print statement. Since the c is double variable so the result will be a decimal number.

    Hence the answer is 4.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the output of doublec = 12.0 / 5 Systemoutprintln (c) ...” 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