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

Can someone send a picture with mayan patterns, it can also be a picture off the internet (The Mayans were a group of people that lived in South America a long
HELP ME PLEASE . THESE ARE RATIONAL NUMBERS BTW.
Please answer the following ques.
what did france lose as a result of the french and indian war?
Do you think Grandfather was fond of the python? Give instances from the text to support your answer. Book: Mulbery English Course BookClass: 8Chapter: Granfath
How can you use mental math and the inverse property of addition to find the sum [5.5+(-2.3)] +(-5.5 + 2.3)?
First Barbie research paper
Find an equation for the line that passes through the points (-5, 2) and (3, 4)
3. Geese and Pigs: A farmer raises only geese and pigs. She wants to raise no more than 16 animals total including no more than 10 geese. She spends $5 to raise
**ONLY FOR GIRLS** I'm showing my dîck, and if y'all wa nna see or show yours, join the image. I'm totally serious , so be here & enjoy no need to be afraid