rhayrhay78
rhayrhay78 rhayrhay78
  • 04-06-2021
  • Computers and Technology
contestada

write an algorithm to calculate the sum of integer ​

Respuesta :

ANP01
ANP01 ANP01
  • 12-06-2021

Answer:

Step 1:Start

Step 2: declare a variable and initialize with ‘0’ to store the sum of the number.

Step 3: take input for the number of numbers to be calculated sum of.

Step 4: Loop through the given range and accept inputs or generate numbers.

Step 5: add the current number according to the loop with the present value of the variable declared in (step 3) and store in the same variable

Step 6: print the value of the variable declared in (step 3) with relevant message.

Step 7: Stop

Explanation:

Answer Link

Otras preguntas

How would you explain social interaction to someone who has never been to our society?
did nationalism have a positive or negative affect on germany/prussia?
what is the answer to 3/8×2/3
According to the map in 1860 Kentucky and Missouri were both
Katie Mae has 893 dollars. She spends 1/5 of it. How much does she have left?
Who was the lightning thief in the book ? What did they steal ?
first major piece of federal antidrug legislation was which act
Write five sentences in Spanish, saying that five people make at this time. 1. What are doing? 2. What is making your friend or friend? 3. What are your class
a car travels with an average speed of 22 m/s.what is this speed in km/s
The Doppler effect applies to light waves as well as sound waves. Astronomers use this to measure the motion of stars and galaxies. In 1929, Edwin Hubble discov