mjc65

evalLogic

Apr 22nd, 2020
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. static int EvalLogicalOr()
  2. {
  3.     int x = 10, y = 20, z = 30, result = 0;
  4.     if (x <= y || z > x)
  5.         result = 10;
  6.     else if (x<=y||z<=x)
  7.         result = 20;
  8.     else
  9.         result = 30;
  10.  
  11.     return result;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment