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

A group of 106 camper sits in a big circle the camp leader tells the camper to say hello to the person sitting next to them on each side what is the total numbe
—Hola Tina, todos nosotros ____________________ en mi casa. ¿Vas a venir?
What is the corollary to the polygon angle sum theorem?
Is a substance in tobacco smoke that reduces the blood's ability to carry oxygen?
Which activity is an example of binging?
what is the answer to (3-4i)+(2+5i)?
How does a landslide change earths surface?
Mags has 2 1/4 pints of milk in her refrigerator. She likes to have 1/4 pint in her oatmeal in the morning. How many bowls of oatmeal can Mags have before she r
A person who stays calm during difficult situations is exhibiting characteristics of _____. agreeableness openness to experiences conscientiousness e
What was the purpose of the civilian conservation corps