Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- #include<iostream>
- #include<cmath>
- using namespace std;
- void zapelnij (int tab[5])
- {
- for (int i=0;i<5; i++)
- {
- tab[i]=rand()%10;
- }
- }
- void wyswietl (int tab[5])
- {
- 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