Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int k=0,K=0;
- int a[15];
- for(int k=0,i=2;k<15;i+=2,k++){
- a[k]=i;
- cout << a[k]<<endl;
- }
- int b[15];
- for(int K=0,I=1;K<15;I+=2,K++){
- b[K]=I;
- cout << b[K]<<endl;
- }
- int C[15];
- for(int g=0;g<15;g++){
- C[g]=b[g]+a[g];
- cout<<C[g]<<endl;
- }
- }
Add Comment
Please, Sign In to add comment