hayliew77771 hayliew77771
  • 09-10-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 10-10-2019

Answer:

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.

Answer Link

Otras preguntas

Why did Japan need to rebuild its economy following world war 2
A character from a novel or play that you have recently read is on trial, and you are the attorney defending him or her. Identify the novel, the character, and
I need help with this problem i would like the answer to be step be step please (9- 2^2 + 10 * 8) divide by 8
what is not an examlpe of a organic fertilizer
Can you help me solve these Logarithm Problems?
JUST NEED THE ANSWER WILL GIVE BRAINLIEST TO WHO EVER ANSWER FIRST AND GETS IT RIGHT :)
although mexico is rich in natural resources, why does so much of the population live in poverty? how does Mexico's history of political instability affect the
needing answer ASAP!! Please
Whitney’s pilot training requires her to log 40 hours of flight time. After two weeks, she logged 8.25 hours. After two more weeks, she logged an additional 11.
explain the events that led to the treaty of versailles?