Advertisement
Kasamundo

Tablice 2 4 6 8 10

Oct 9th, 2019
118
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.  
  3. using namespace std;
  4.  
  5. int tab[5];
  6.  
  7. int main()
  8. {
  9.     for(int i=0;i<=4;i++)
  10.     {
  11.         tab[i]=(i+1)*2;
  12.         cout<<tab[i]<<"  ";
  13.     }
  14.  
  15.  
  16.  
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement