Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void wypelnijTablice( int tab[], int rozm )
- {
- for(int i = 0; i < rozm; i++){
- tab[i] = i + 1;
- }
- }
- int main()
- {
- int n;
- cin>> n;
- int tab[ n ];
- wypelnijTablice( tab, n );
- for (int i = 0; i < n; i ++){
- cout<< "tab od " << i << " wynosi: " << tab[i] << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement