Advertisement
xbenas

bool

Jan 6th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. bool survive (int a, int b, int c, int d, int e, int f)
  2. {
  3. if (((d> a) || ((d == a) && (e> b)) || ((d == a) && (e=b) && (f > c))))
  4. something=true;
  5. else something=false;
  6.   return something;
  7. }
  8. ///////////////////////////////////////////////
  9. bool survive (int a, int b, int c, int d, int e, int f)
  10. {
  11. return ((d> a) || ((d == a) && (e> b)) || ((d == a) && (e=b) && (f > c)));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement