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

How does Pericles describe Athenian democracy? Does his argument for democracy derive from fundamentle principles, such as human equality, or form the principle
The layer of the earth we stand on and that is only a few miles thick
which number is greater 0.3 or -0.7
Why did the findings of Galileo frighten Catholic and Protestant leaders? His findings supported the theories of Aristotle His findings led him to rebel against
A PROTEIN IS COMPOSED OF MONOMERS TERMED ____________.
twice a number subtracted from four times a number added to 15
x - 5.1 = -7.6 x is equal to what number
What is 260,987 rounded to the nearest ten thousand
What did George Washington say about U.S. imperialism
Alana biked 45 miles in 3 hours.How many miles did she bike per hour?