Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int a,b,c;
- int main()
- { a=0;
- b=9; //od 0 do 9
- while(a<3)
- {
- cout<< rand()%(b)<<endl; //rand jako random, losowe //
- a++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement