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

I need help on number 7 Please help me!!!
All of the following are examples of radioactive decay except which of the following _______. A. alpha B. gamma C. deka D. beta
if fx)=x+7 and g(x)= 1/x-13, what is the domain of (f*g)(x)
What does 170/100 equal in decimals?
When juliet appears on her balcony what does romeo compare her to?
consumers obtain nitrogen directly from where
A bridge is made with segments of concrete 50 m long. If the linear expansion coefficient is 12  10–6 (°C)–1 , how much spacing (in cm) is needed to allow for
Franklin roosevelt was first elected as president in 1932 1936 1928.
A rectangle has dimensions of 15 centimeters long and 16 meters wide what is the area of the rectangle
What is the best definition of lewis thomas' idea of interconnectedness? a. humans are superior beings who must use their abilities to conquer and connect new