Guest User

Untitled

a guest
Dec 9th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. sideUp = r;
  2. cout << "Tossing the coin... " << endl;
  3. r = (rand() % (2)) + 1;
  4. if (r % 2 == 0)
  5.  
  6. {
  7. cout << "Tails." << endl;
  8. }
  9.  
  10. else
  11.  
  12. {
  13. cout << "Heads." << endl;
  14. }
  15. cout << endl;
  16. &Coin::sideUp;
Add Comment
Please, Sign In to add comment