Ask Question
8 July, 12:51

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

+1
Answers (1)
  1. 8 July, 16:15
    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?
Get an answer to your question ✅ “What is the output of int a = 12 / 6*2. Systemoutprintln (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