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

What were the causes of WW1
what is 3 times sqrt 18
How many letters are their in the alphabet
Wat do Shang artifacts reveal about this civilization.......I need help please
multiplying polynomials find the product(5n+6)(5n-5)
write the following comparison as a ratio reduced to lowest terms. 85 minutes to 8 hours
Which substance reacts with an acid to form hydrogen gas?
Describe the range of a square root function
what was the most popular mode of transportation in 1920?
multiplying polynomialsfind the product(2a-1)(8a-5)