answersLogoWhite

0

Start

print "the sum of all even numbers is infinite"

end

User Avatar

Wiki User

8y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

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.

User Avatar

Wiki User

8y ago
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