Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- using namespace std;
- // Napisz program, który wypełnia i wypisuje tablicę sześcioma liczbami całkowitymi z przedziału od 1 do 49
- int losuj(int a, int b)
- {
- srand(time(nullptr));
- return a + rand() % (b - a + 1);
- }
- void wypelnij(int* tab, int rozmiar)
- {
- // Miejsce na Twój kod
- }
- void wypisz(int* tab, int rozmiar)
- {
- // Miejsce na Twój kod
- }
- int main()
- {
- int tablica[6];
- wypelnij(tablica, 6);
- wypisz(tablica, 6);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment