Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n=10;
- int b[];
- int c;
- int a[]={-5,0,-8,14,7,-2,9,12,364,1};
- for (int i=0; i<n; i++){
- if (a[i]%2==0){
- /*cout << a[i]<< " ";*/
- }
- c=a[i]+a[n-i-1];
- }
- cout <<c<< endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement