Advertisement
takayoshi

Untitled

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