Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- void zapelnij(int *tab)
- {
- for (int i=0;i<5; i++)
- {
- *(tab+i)=rand()%10;
- }
- }
- void wyswietl(int *tab)
- {
- for (int i=0;i<5;i++)
- {
- cout<<*(tab+i)<<" ";
- }
- }
- int main()
- {
- srand(time(NULL));
- int tab[5];
- zapelnij(tab);
- wyswietl(tab);
- cin.ignore();
- getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment