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