answersLogoWhite

0


Best Answer

Yes, please do.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a algorithm to find sum of n integers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write algorithm and draw flowchart to find the sum of even numbers?

jgfujtf


Write the algorithm and draw the flowchart to find Sum of N Prime number?

Ah, finding the sum of N prime numbers is a lovely challenge! You can create an algorithm by first defining a function to check if a number is prime, then loop through numbers starting from 2 and add the prime numbers to a running sum until you reach N prime numbers. For the flowchart, you can start with a start/end symbol, then use decision symbols to check if a number is prime, loop symbols to iterate through numbers, and a process symbol to calculate the sum. Remember to add symbols for input and output as well. Happy algorithm painting!


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


Write an algorithm find out the sum of first n odd numbers?

Algorithm: sum_evenInput: an integer, n, such that n>0Output: the sum of all even integers within the open range (1:n)sum := 0val := 2while (val < n) do{sum := sum + valval := val + 2}return sumNote that you explicitly specified between 1 and n, which literally means both 1 and n should be excluded from the sum. 1 would be excluded anyway since it is not an even number, however if we wish to include n, then use the following algorithm instead:Algorithm: sum_evenInput: an integer, n, such that n>0Output: the sum of all even integers within the half-open range (1:n]sum := 0val := 2while (val


How do you find the sum of two integers with different signs?

-- write the difference between the integers without regard to their signs -- give the difference the same sign as the larger of the two integers


What is The sum of the squares of two consecutive positive even integers is 340 Find the integers?

The sum of the squares of two consecutive positive even integers is 340. Find the integers.


Find two consecutive integers that have a sum of -67?

The integers are -34 and -33.


If sum of two consecutive integers is 228 find the integers?

The sum of any two consecutive integers must be an odd number. So this question is incorrect.


What is the sum of three consecutive integers is 88?

Find 2 consecutive ODD integers whose sum is -88 ANSWER: -45, -43


The sum of all the integers between 50 to 350 which end in 1 is?

If you write down all of the integers between the two numbers, your sum is equivalent to 5,659.


Find the sum of odd integers divisible by 3?

The sum is infinitely large.


How do you find a sum of two integers when the signs of the integers are differentHow do you decide the sign of the sum?

-- Ignore the signs for a moment. -- Find the difference of the two integers. -- Give it the sign of whichever integer is the bigger number.