By: Editorial Staff | Last Updated:
In this program, we are going to share how to compute the sum of the array elements using C programming language. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to compute the sum of the array elements.
Copy the below C program and execute it with the help of C compiler. At the end of this program, We have shared the output of this program.
float principle, time, rate, SI;
printf("Enter principle (amount): ");
printf("Enter time: ");
printf("Enter rate: ");
SI = (principle * time * rate) / 100;
printf("Simple Interest = %f", SI);
Enter 10 elements : 11 12 13 14 15 16 17 18 19 20
The sum of array elements is 155
Liked this program? Do Like & share with your friends 🙂
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff
Tags: C Program to Calculate Addition of All Elements in Array, C program to calculate Sum, C Program to find sum of array elements, Find Sum of Array Elements Program in C, Program to find sum of elements in a given array, write a program to find the sum of the array elements in c language