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

Mr Corwin gave his students 3 / 4 hour to study for a test. After 1/4 hour, he played a review game for the remaining time. How much time did Mr Corwin spend pl
Why does Equality 7-2521 have numbers in his name?
What is the basic concept of majoritarian democracy?
which best states the three main northern strategies for winning the civil war
Please Help Thank you
Each of the following are descriptions of Physical properties except ____. Question 1 options: C. flammability D. density A. color B. mass
The difference between 7 and the product 3x is 23
Which statement best explains why tension grew between European leaders over colonialism in Africa? A. Some believed the colonization of Africa was immoral and
Hannah's financial advisor believes that she should spend no more than 26% of her gross monthly income for housing. She has determined that amount is $1,794 per
There is no exception to a (need help ) a; scientific law b ;theory c; hypothesis d; pseudoscience