kilolilo

Untitled

Oct 6th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a[15];
  6. for(int k=0,i=2;k<15;i+=2,k++){
  7. a[k]=i;
  8. cout << a[k] << endl;
  9. }
  10. cout << endl;
  11. }
Add Comment
Please, Sign In to add comment