Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int tablica[10];
- int main(){
- srand(time(NULL));
- for (int i = 0; i < 10; i++) tablica[i] = rand()%50+1;
- for (int i = 0; i < 10; i++) cout << "Tab[" << i << "]="<<tablica[i]<<";" << endl;
- }
Add Comment
Please, Sign In to add comment