Advertisement
High_Light

dodelat doma

Nov 10th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n=10;
  8.     int b[];
  9.     int c;
  10.     int a[]={-5,0,-8,14,7,-2,9,12,364,1};
  11.         for (int i=0; i<n; i++){
  12.             if (a[i]%2==0){
  13.             /*cout << a[i]<< " ";*/
  14.             }
  15.             c=a[i]+a[n-i-1];
  16.         }
  17.         cout <<c<< endl;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement