Guest User

Untitled

a guest
Feb 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int ar[]={1,2,3,4};
  6. int k;
  7. for (k=0; k<4; k=k+1)
  8. ar[k] = ar[k]+ar[3-k];
  9. for (k=0; k<4; k=k+1)
  10. cout << ar[k];
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment