1.start
2.n=1,s=0
3 compute s=s+n
4 compute n=n+1
5 check n<=10 go to step3 else go to step 7
6 display s
7 stop
n=int (input('enter the limit'))
I=1
Sum=0
while i
Write algorithm to find the sum of odd number between 1 to100
write an algo to find the sum of even number from 1to n
102
Start print "the sum of all even numbers is infinite" end
sum = 0 for(n = 0; n <= 10; n += 2) sum += n;
The even numbers between 23 and 27 are 24 , 26.
They are: 2 4 6 8 10 and 12
write an algo to find the sum of even number from 1to n
102
Start print "the sum of all even numbers is infinite" end
jgfujtf
sum = 0 for(n = 0; n <= 10; n += 2) sum += n;
Show a modified algorithm flowchart to list even numbers between 20 and 40, 22, 24, 26, 28, 30, 32, 34, 36, 38 and that is 9 numbers
It is 0 since the number of odd numbers less than 180 is infinite and a finite number "divided by infinity" is zero. However, if you limit yourself to positive integers, then the ratio is 49/90, which cannot be simplified.
Something like this: sum = 0 for i = 2 to 20 step 2 { sum = sum + i }
5598,6002,6004,6006,6008,
There are four even numbers between one and nine. the four even numbers are 2,4,6 and 8.
what are the even square numbers between 10 and 70