1.

Write a c program to calculate the sequence sum of first n terms using dynamic memory allocation

Answer»

Answer:

First create all variables required in the program. Ask the user to enter the total numbers of elements and store it in the variable count. Allocate memory to the int POINTER variable . Use one for LOOP and read the element count. Ask the user to enter the element and store it in arr .

EXPLANATION:



Discussion

No Comment Found