Question: Task(1): Write a C++ programm to the following: -Declare array named Array 1 of size 8 and integer datatype -ask the user to enter the
Task(1): Write a C++ programm to the following: -Declare array named Array 1 of size 8 and integer datatype -ask the user to enter the elements of the array - print the index of even element: -Your program should update every element in Arrayl by multiplying the next and previous values of a Arrayl except the first and laste element will stay the same.Print the arral after this process. Task(2): Write a C++ programm to print the factorial of a number by defining a function named "Factorial". Factorial of any number n is represented by n ! and is equal to 1234(n1)n. sample output: Task(3): Define and call function named Sum_Fun to calculate and print the sum of the series (11)+(22)+ (33)+(44)+(55)++(nn). Where n is an input from the user. :sample output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
