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

Two similar chromosomes that you inherit from your parents are called
Sam's feet hurt! He had been walking around the mall for nearly an hour trying to find the perfect outfit. The Eighth Grade Formal is the most important
You found a job that pays $15 per hour. After working for one year, you will get a 4% raise. What will be your new pay rate after one year?
Sanskrit is the ancient language of _____.
the voyage of Christopher Columbus in 1492 A) opened the way for Spain to colonize north and south America B) led the way for portugal to build a vast trading
what did the Greeks think of Macedonians?
Someone who suffers from narcolepsy may experience __________. a. trouble getting to sleep b. hallucinations c. frequent awakenings d. terrifying dreams
quotient of 66 and 3
which of the following was a difference between the policies of roosevelt and those of taft A: roosevelt wanted to break up trusts while taft avoided breakng u
What were sun-baked bricks plastered with mud called?
good job