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

what is the output of intb= 4+ 6 /2 Systemoutprintln (b)

Respuesta :

joaobezerra joaobezerra
  • 13-10-2019

Answer:

Command: Systemoutprintln (b)

Output: 7

Explanation:

To solve this problem, we must take into account the precedence of operation.

The division takes precedence before the addition, so we must divide before we add for b.

So

int b = 4 + 6/2 = 4 + 3 = 7.

So

Command: Systemoutprintln (b)

Output: 7

Answer Link

Otras preguntas

after the election of 1890 organized groups supporting farmers called for the formation of a third party that became generally known as the what party?
1) At a concert, there are 3 times as many women as men. 3/5 of the men and 1/3 of the women wear glasses. There are 120 more women wearing glasses than men wea
three sets of a sum of a number and four are added to the sum of seven times the same number and thirteen
Please help me, this is quite hard
which of the following are functions?
What did Mendelssohn discover about genetic factors in pea plants?
Hank earns $12 per hour for babysitting. How much does he earn for 15 hours of babysitting?
Name the elements found in each compoud Nucleic acid Lipid Protein Carbohydrate
What happens when a rock falls? F. It breaks G. It deforms elastically H. It deforms plastically I. It folds I honestly do not understand this at all! Please he
Discuss the rationale for retaining strong ethnic identity in the united states as opposed to full assimilation into the American nationality identity.