/* program in c for addition of elements in array. */
We are going to add the elements of array and store it in a variable. and finally we shall display the results.
Initialize sum = 0. We shall read first number for user and add it with value in sum variable. then we shall read next number for user and add it with value in sum variable. and continue it till the last element. Finally sum variable will contain the sum of all elements.
Written with ♥ from Mangesh.
|1||C program to reverse element in array.|
|2||C program to find the smallest number in array.|
|3||C program to find the largest number in array.|
|4||C program for addition of 2D matrix.|
|5||C program to calculate sum of all elements in array.|