colinpvinu colinpvinu
  • 12-06-2020
  • Mathematics
contestada

Write the sum of first n natural numbers.​

Respuesta :

UncannyDani
UncannyDani UncannyDani
  • 12-06-2020

The sum of the first n natural number = n * (n+1) / 2, for n a natural number.

For example, you want to calculate the sum and average of any five numbers entered by the user. i.e., If you want to calculate the sum and average or percentage of multiple user-entered numbers, then please refer to the following program.

Answer Link

Otras preguntas

When did Cartier explore present-day Canada for France?
The Fifth Amendment to the United States Constitution states: No person shall . . . be deprived of life, liberty, or property, without due process of law; nor s
What describes consensus historiography?
Three vertices of a rectangle are (–1, 0), (6, 0), and (6, 3). What are the coordinates of the fourth corner point of the rectangle? A. (–1, 3) B. (–1, 6) C
A man buys a book for $20 and wishes to sell it. What price should he mark on it if he wishes for a 40% discount and 50% profit on the cost price. Please explai
how many weeks are in 49 days
how did the great depression affect political life in Germany and Japan?
Which human activity has aggravated the ecological issue of global warming
how did Stalin and Mussolini maintain their power?
how do you find the slope of x^2 at x = 5? please hurry