Advertisement
takayoshi

Untitled

Jul 9th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. public int CalcSomeFunction(int x, int y, int z)
  2. {
  3.    if (z!=0)
  4.    {
  5.        return 0;
  6.    }
  7.  
  8.     if (x>=0)
  9.     {
  10.         if (y>=0)
  11.         {
  12.             return 1;
  13.         }
  14.         else
  15.         {
  16.             return 4;
  17.         }
  18.            
  19.     }
  20.     else
  21.     {
  22.         if (y>=0)
  23.         {
  24.             return 2;
  25.         }
  26.         else
  27.         {
  28.             return 3;
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement