MaxxxxiorS

Na trójkę 17.03.2021

Mar 17th, 2021
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int tab[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  8.     int x = 0;
  9.  
  10.     do
  11.     {
  12.         cout << tab[x] << endl;
  13.         x++;
  14.     } while (x < 10);
  15.    
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment