or

ask mattrab Visit www.askmattrab.com for more academic resources.

Find sum of array elements

// Find the sum of array elements.

#include <stdio.h>
#include <conio.h>
#include<math.h>

void main()
{
    int a[5], i, sum;  

    // Assigning values to array.
    printf("Enter Enter the array elements\n");
    for(i=0; i<5; i++){

        scanf("%d", &a[i]);
    }    

    // Printing the values of array.
    for(i=0; i<5; i++){

        sum = sum + a[i];
    }

    // Printing the final sum.
    printf("Sum of the elements is %d.",sum);

    getch();

}


subash neupane asked over 1 year ago

Can u help me for the assignment . Design an Online Customer management portal for handling bills, credits, and all types of possible operations including inventory management for owners, bill reminders for customers, Expenditure of month for customer and a chat portal to advertise newly added items for the shop owners. The submission should be an android application, and a responsive web app. Hint: - Use Ionic/ React/ Xamarin/ Flutter or any of cross platform development language to help you maintain a single code base. Tech Stack Recommended: - Front end: - React/ Flutter/ Ionic Back end: - Firebase/ Google Appscripts

Aayush Bhattarai answered over 1 year ago

I think it will be easier to choose Flutter for a given problem. Flutter is very easy when you combine real-time databases like firebase

If you are new to flutter then you can follow Flutter Cookbook.

Almost Everything is cover by Flutter Docs