Computer Science, asked by mnissar184, 4 months ago

Write a C++ program to find the sum of elements.​

Answers

Answered by Anonymous
0

Answer:

The program output is shown below.

  1. #include<iostream>
  2. int arr[10], n, i, sum = 0, pro = 1;
  3. cout << "Enter the size of the array : ";
  4. cin >> n;
  5. cout << "\nEnter the elements of the array : ";
  6. for (i = 0; i < n; i++)
  7. cin >> arr[i];
  8. for (i = 0; i < n; i++)

hope this helps you☺️

Similar questions