Friday, July 31, 2009

Write a program to find the sum of the array elements in c language?

Why don't you show us what you have so far. This is really quite a simple use of a loop and some basic math. Show us what you have so far, and maybe we can give you some specific help instead of just writing it for you.

Write a program to find the sum of the array elements in c language?
You can do it with loop.


1. Declare variable outside of loop.


2. Loop through the array and look at each elements in array and add them in each iteration.


No comments:

Post a Comment