Advertisement
maya97

2

Dec 11th, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. /* A PROGRAM TO FIND THE SUM OF THE FUNCTIONS ACCORDING TO THE INFORMATION GIVEN
  2.  ON THE ELEMENTS */
  3.  
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.    
  12.     cout << "A PROGRAM TO FIND THE SUM OF THE FUNCTIONS ACCORDING TO THE INFORMATION GIVEN ";
  13.     cout << "ON THE ELEMENTS";
  14.     cout << "\n";
  15.    
  16.     int n;
  17.     cout << "give us number of elements : " << "\n";
  18.     cin >> n;
  19.     int a[n];
  20.    
  21.    
  22.    
  23.     int i;
  24.     cout << " put the numbers : " << "\n";
  25.     for (i=0 ; i<n ; i++)
  26.     {
  27.         cin >> a[i];
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement