Write a program that calculates the sum and product of 2, 4, 6, 8, n, where n is a user entered even integer value. You
Posted: Thu May 05, 2022 1:33 pm
in C language
please answer asap
Write a program that calculates the sum and product of 2, 4, 6, 8, n, where n is a user entered even integer value. You will define two methods sumToN[int n) and productTON[int n) that calculate these two values. The following is a sample run: Enter a positive even number: 16 2+4+...+16 = 72 2*4*...*16= 10321920
please answer asap
Write a program that calculates the sum and product of 2, 4, 6, 8, n, where n is a user entered even integer value. You will define two methods sumToN[int n) and productTON[int n) that calculate these two values. The following is a sample run: Enter a positive even number: 16 2+4+...+16 = 72 2*4*...*16= 10321920