Question: Program written in C Write a program that calculates the sum and product of series of integers. You will take 3 integers as input- starting
Program written in C
Write a program that calculates the sum and product of series of integers. You will take 3 integers as input- starting number, step(increment) size and last number. For this problem, you might want to use for loop. Do not give large step size or last number, as the result of product might overflow. Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs) Enter starting number: 1 Enter step size: 2 Enter last number: 10 Sample Output: Sum of the series is 25 Product of the series is 945
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
