msketchy msketchy
  • 17-12-2017
  • Computers and Technology
contestada

What is output by the following code?

System.out.print(21.0/5);


1. 3.5
2. 5.5
3. 4
4. 4.2
5. 5

Respuesta :

TheRealBattlesquid
TheRealBattlesquid TheRealBattlesquid
  • 17-12-2017
Division in Java will return the integer value and disregard the remainder. This line of code will return 4.

:)
Answer Link

Otras preguntas

Mechanical reaper Cotton gin Combine harvester Which sector of the American economy was revolutionized by these technological breakthroughs? A) agriculture B
Make a Graph Ms. McGill has 8 containers of liquid in her refrigerator. Three of the containers hold a pint. 38 ofthe containers hold a quart. The rest of the c
What is the proper sequence of energy changes that occur in a hydroelectric plant? Question 5 options: The generator produces electrical energy The mechanical e
Using the quadratic formula to solve 7x2 – x = 7, what are the values of x?
an important event that occur during a project is an
which of these is a biased statement ​
What can be inferred about the cave in the photo above? A. It is located in a lake B. It contains water that is not acidic C. It is located below the water ta
What's the answer to this question, a salesperson receives a 3% commission on sales the salesperson receives a $180 in commission what's the amount of sales
5 cakes are shared equally between 6 people. What fraction of a cake does each person receive? Simplified answer
Products of MnO + CL2