Question: Please explain the coding using Cprogramming Language Problem 4. Series of integers (25 points) Write a program that calculates the sum and product of series

Please explain the coding using Cprogramming Language
Problem 4. Series of integers (25 points) 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 Problem 5. Prime Number or Not! (15 points) Prime numbers are numbers that are bigger than one and cannot be divided evenly by any other number except 1 and itself. Write a program that takes an integer as input and determine whether it is a prime number or not For this code, you need to use both loop and if-else blocks Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs) Sample Input Sample Output Enter Number: 264 Enter Number: 37 Enter Number: 63 264 is not a prime number 37 is a prime number 63 is not a prime number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
