lwilliams2954 lwilliams2954
  • 17-02-2018
  • Mathematics
contestada

Associate the average of the numbers from 1 to n (where n is a positive integer value) with the variable avg.

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 27-02-2018
This is a simple programming question. To calculate the average of any two numbers, where one number is 1 and the other is n, simply add the two numbers and divide by 2. Therefore, the answer is:
avg = (1 + n) / 2 
Answer Link

Otras preguntas

২.৪ রক্ততঞ্চনে সাহায্যকারী ধাতব আয়নটির নাম লেখ।​
√−100 =__ +__i PLEASE ANSWER ASAP
Match the resource with its origin in the Columbian Exchange Corn Tobacco Horses Tomatoes Wheat
Gordon is going for a run through the park, but it is cold outside. The low outside temperature could affect his personal safety.
Subtract a ‘whole fraction’ from this improper fraction. Is the leftover fraction proper or improper? 9/4
plz can any one help me ??​
Which ordered pair is not a solution of 1x) = 2x+9? (7,23) (3, 14) (2, 13) (0.9)
what is ATMOSPHERIC REFRACTION​
using factor theorem factorise each of the following x^4 - 7x^3 + 9x² + 7 x – 10 Please fast
does anyone know the answer to this question?