Menu

[solved] – Question 79500

Write a program that takes a number n and finds and adds separately the sum of all the even numbers
and odd numbers in two different variables upto that number and at the end prints the product of those
two number
Input: 10.
so
=> even(2,4,6,8,10) sum of even is = 30.
=>odd(1,3,5,7,9) sum of odd is = 25
25*30
Output: 750.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *