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

Convert 11.03 moles of calcium nitrate to grams.
Where can we buy a cryptocurrency? from below options A) Through a private transaction B) All the options C) Cryptocurrency Exchanges D) In a smart contract
At the end of the week, Jason received a paycheck for $534.59. He recorded all of these transactions in his check register. Trans typ./ Check no. Date Descripti
13 6 19 2 32 8 16 4 22 ?
i have 13 minutes left for my quizzz hellppp ???
TUU SILICU. A cone with radius 5 units is shown below. Its volume is 105 cubic units. Find the height of the cone. Use 3.14 for it and round your final answer t
Lee el texto y la pregunta y escoge la opción con la respuesta correcta a la pregunta. Read the text and question and choose the option with the correct answer
I WILL MARK YOU AS BRANLIEST what is the area???? ​
What was Hideki Tōjō’s role prior to and in World War II? How did his slogan ""Asia for the Asiatics"" differ from the reality of Japanese imperialism?
Puritains came to the colonies looking for