answersLogoWhite

0


Best Answer

Start

print "the sum of all even numbers is infinite"

end

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

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 algorithm and draw flowchart to find the sum of even numbers?

jgfujtf


Write a algorithm to print all even numbers in descending order?

AnswerIf A=10, B=2... Then the algoritm is :-STEP1 : START.STEP2 : A=10.STEP3 : B=02.STEP4 : C=A-B.STEP5 : PRINT C.STEP6 : STOP.AnswerYou cannot print every even number in descending order, because there is no greatest even number. Or you want something like this: infinityinfinity-2infinity-4Answerstep 1: start step 2: Input Nstep 3: If N


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 programme to print all the even numbers in descending order?

#include(stdio.h) int main ()


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


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

Reference:http:cprogramming-bd.com/c_page2.aspx# strange number


Write a program to print even and odd numbers in between 1 to 10?

for (int i = 2; i < 10; i ++) printf("%d\n", i); You did say even and odd numbers between 1 and 10. That's allnumbers between 1 and 10.


Print sum of first ten even numbers?

It is 110.


How do you write algorithm with its equivalent pseudo code that sums all even numbers between 1 and 20 s?

Something like this: sum = 0 for i = 2 to 20 step 2 { sum = sum + i }


How do you write a program to print even numbers from 1 to 50 in PHP?

Code Below: &lt;?php $j = 100; // Set limit upper limit echo "Even Numbers are: &lt;br/&gt;"; for($i=1;$i&lt;=$j;$i++) { if($i%2) { continue; } else { echo $i."&lt;br/&gt;"; } } ?&gt;


Write a algorithm to print even number in C programming language?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int n; clrscr(); printf("\n enter the number:"); scanf("%d",&amp;n); if(n%2==0) printf("\n the number is even"); getch(); }