MSeal2941 MSeal2941
  • 12-10-2017
  • Computers and Technology
contestada

Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double variable avg. assume the variables num1, num2, and num3 have been declared and assigned values, and the variable avg declared.

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 24-10-2017
avg = ( num1 + num2 + num3 ) / 3;
Answer Link

Otras preguntas

are 32/36 and 24/28 proportional
salt & sugar do not appear to have a fix shape.why do we call them solid
write an article on the inroads that computers have made in our lives today and the manner in which they have become so inseparable part of youngster's life. W
salt & sugar do not appear to have a fix shape.why do we call them solid
are 32/36 and 24/28 proportional
An oil refinery produces gasoline from crude oil. For every 10,000 barrels of crude oil supplied, the refinery can produce 6,500 barrels of gasoline. How many bar
How do global events effect your daily life?
1 4 2 8 3 12 4 16 5 20 And the function graph above what is the input what is the output
What does a 10-dB increase in loudness represent?
3. Which word in the sentence is the indirect object? After the show, the performers made themselves a delicious dinner.