cheerkennedym5520 cheerkennedym5520
  • 19-02-2020
  • Mathematics
contestada

You have three int variables called a, b and c. Write a Java statement which creates a variable d and assigns its value to the mean of a, b and c.

Respuesta :

fahadisahadam
fahadisahadam fahadisahadam
  • 21-02-2020

// creates variable

int a;

int b;

int c;

// Now assign value to a variable

// let me give them a value

a = 10;

b = 20;

c = 30;

mean= (a + b + c ) / 3;

// print mean

System.out.println("The mean is : " + mean);

The out will be 20.

Answer Link

Otras preguntas

What is 9 squared x 7 qubed
A _____ works well to show a comparison of things at two or more separate points in time. line graph bar graph pie chart pictograph table
Why did the North support tariffs (taxes) on imports/export
How did the government of japan react to the economic problems of the 1920s and 1930s?
Which word best completes the following sentence? He visto ______________ de conciertos de rock en la televisión. 1.canción 2.publicidades 3.cantante 4.trompet
Sara's gross pay is $600, from which $27 is deduced for OASDI, $8 for Medicare, and $10 for income tax. What is her net pay?
The volume of a cube can be found using the equation V = s³, where V is the volume and s is the measure of one side of the cube. Match the equation for how to s
What might be an example of something in the foreground? Mountains Sky Rocks Sun
How do you subtract 4/5 - 3/10
All of the following was true about the Kansas-Nebraska Act EXCEPT: A. Kansas and Nebraska were opened to slavery based on popular sovereignty. B. It gave ris