write a BASIC program to find the sum of all even numbers upto 100
Answers
Answered by
1
sum= n/2(2a+(n-1)×d)
where a= 1st even number.
d= difference which is equal in each succeeding even number.
n= no . of even numbers.
where a= 1st even number.
d= difference which is equal in each succeeding even number.
n= no . of even numbers.
Answered by
1
Similar questions