Ask Question

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

+4
Answers (1)
  1. Today, 03:28
    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 & 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