answersLogoWhite

0


Best Answer

Start

print "the sum of all even numbers is infinite"

end

User Avatar

Wiki User

โˆ™ 2017-03-07 18:22:40
This answer is:
User Avatar
Study guides

Algebra

20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

โžก๏ธ
See all cards
3.75
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
859 Reviews
More answers
User Avatar

Wiki User

โˆ™ 2017-03-07 15:16:08

There are infinitely many even numbers and so the sum of all even numbers is infinity. The answer, therefore, is to write an algorithm whose only step is to output "Infinity" and then stop.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm to print sum of all even numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write an algorithm to print all even numbers in descending order and draw the flowchart?

write an algorithm to print first N even numbers


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

jgfujtf


What is the Algorithm to print the all even numbers from 1 to 100?

Two solutions immediately spring to mind:Run over all the numbers in the range and if the number is even print it;run over the numbers starting with the first even number in the range using a step of 2 (so that only even numbers are considered) and print the numbers.


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


All even numbers from 2-100 using algorithm?

102


Write a c program to print even numbers using for loop?

Yes, yes, please do.


How do you Write a C program to print a Series of Odd Numbers and Even Numbers.?

Reference:cprogramming-bd.com/c_page2.aspx# divisible


Write a c programme to print all the even numbers in descending order?

#include(stdio.h) int main ()


Write a c program to print the sum of even numbers from 300 to 400?

printf ("%d", 51*350);


Write algorthim and draw a flowchart to find out the even numbers between 1 to 100?

An algorithm to find the even numbers between 1 and 100, in C# //This will hold the resultsList evenList = new List();for (int i = 1; i


Write a program in qbasic to print all even numbers from 65 to 85?

For i = 66 to 84 step 2 : print i : next : end PROGRAM TO FIND THE FIRST ONE HUNDRED EVEN NUMBERS FOR NUM = 2 TO 100 STEP 2 PRINT NUM, NEXT NUM END


How write algorithm for finding the sum first ten even number?

Sum = 0 For N = 1 to 10 Sum = Sum + 2*N Next N Print Sum

People also asked

Algorithm to find the sum of even numbers between 1and 10?

View results