SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <ctime>
  3.  
  4. using namespace std;
  5. int main()
  6. {
  7.     srand(time(NULL));
  8.     int pUzytkownika(rand() % 5), pWinda1(rand() % 5), pWinda2(rand() % 5), expWinda1(rand() % 10000), expWinda2(rand() % 10000);
  9.     cout << pUzytkownika << " " << pWinda1 << " " << pWinda2 << endl;
  10.     if(abs(pUzytkownika - pWinda1) > abs(pUzytkownika - pWinda2)){
  11.         cout << "Przyjedzie winda 2";
  12.     }
  13.     else cout << "Przyjedzie winda 1";
  14.     return 0;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top