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

what is bigger 17 qt or 4 gal
What is the actual physical appearance of the gene?
Need some help here. I have one question left ona homework sheet. I can't remember what the answer was. Can somebody please help? 15 points to who ever can answ
In natural selection, what is the selective agent?
What happens to the two air masses as the warm air mass advances? The cool air will sink rapidly, cool, release moisture, and produce thunderstorms and severe w
1.Rachel has 6 pairs of black shoes and 2 pairs of red shoes. What is the ratio of pairs of red shoes to pairs of black shoes? A. 3:1 B. 1:3 C. 4:1 D. 1
Which sentence uses a verb that agrees with its subject? A. Has your friends ever ridden in a truck? B. Among the trees were a lone gray squirrel. C. Where is t
what do bacteria have surrounding their cell membrane
words:etymology:: _____ literature:history life:biology insects:entomology humans:anthropology
rosa has 16 unit cubes. how many different rectangular prisms can she build with the cubes?