moisescouch2110 moisescouch2110
  • 07-08-2019
  • Computers and Technology
contestada

How would you describe by adding comments to the coding explaining that you know what int num1 = 10; int ave = (num1+num2+num3)/3; means? Is it declaring that num1 = 10?

Respuesta :

flightbath flightbath
  • 15-08-2019

Answer:

//declaring variable num1 and intializing it to 10

int num1 = 10;

//declaring variable ave and assigning average of 3 numbers num1,num2,num3

int ave = (num1+num2+num3)/3;

Explanation:

//declaring variable num1 and intializing it to 10

int num1 = 10;

//declaring variable ave and assigning average of 3 numbers num1,num2,num3

int ave = (num1+num2+num3)/3;

Answer Link

Otras preguntas

45is26%of what don't get it
describe the results if you do an experiment to determine the physical properties of tyrosinase. if you run gel filtration and SDS-PAGE, what results do you see
The quote below was written in 1950 by Fleet Admiral William D. Leahy, Chief of Staff to President Truman: "I was not taught to make war in that fashion, and wa
Cartography is the science of ?
water storage is an important part of the water cycle and our daily lives where do you observe water storage
what takes place in organelles called chloroplasts
What is another word for religious group
Factor each trinomial. Then match the polynomial (term) on the left with its factored form (definition) on the right. Match Term Definition x2 – 8x – 20 A) (x –
Buying short contributed to the rise of stock market prices throughout much of the 1920s because the practice allowed many people to buy stocks with very little
Question on angles, photo attached.