Advertisement
Josif_tepe

Untitled

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