Ask Question
3 September, 02:23

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

+5
Answers (1)
  1. 3 September, 03:25
    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?
Get an answer to your question ✅ “What is the output of doublec = 12.0 / 5 Systemoutprintln (c) ...” 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