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