kilolilo

Untitled

Oct 6th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int k=0,K=0;
  6. int a[15];
  7. for(int k=0,i=2;k<15;i+=2,k++){
  8. a[k]=i;
  9. cout << a[k]<<endl;
  10. }
  11. int b[15];
  12. for(int K=0,I=1;K<15;I+=2,K++){
  13. b[K]=I;
  14. cout << b[K]<<endl;
  15. }
  16. int C[15];
  17. for(int g=0;g<15;g++){
  18. C[g]=b[g]+a[g];
  19. cout<<C[g]<<endl;
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment