Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int a, b, n;
- cout << "Podaj poczatek zakresu: " << endl;
- cin >> a;
- cout << "Podaj koniec zakresu: " <<endl;
- cin >> b;
- cout << endl;
- int tab [10];
- for (int i = 0; i < 10; i++)
- {
- tab [i] = rand ()% (b-a) + a;
- cout << tab[i] << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement