Ask Question

What is the output of int a = 12 / 6*2. Systemoutprintln (a)

+4
Answers (1)
  1. 27 December, 13:29
    0
    This code will produce

    4

    Explanation:

    In this code the result of the arithmetic operation is stored in the variable a. On evaluating the expression it first divides 12 by 6 which results in 2. Then the result is multiplied by 2. Which results in 4 and it is stored in a. Then it is printed on the screen using print statement.

    Hence the answer is 4.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the output of int a = 12 / 6*2. Systemoutprintln (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