Advertisement
ret_0

Untitled

Jun 22nd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function fun2(A as Integer, B as Integer, C as Integer, D as Integer) as Integer
  2. if A > B then
  3.     if A > C then
  4.         if A > D then
  5.             Return A
  6.         else
  7.             Return D
  8.         end if
  9.     else
  10.         if C > D then
  11.             Return C
  12.         else
  13.             Return D
  14.         end if
  15.     end if
  16. else
  17.     if B > C then
  18.         if B > D then
  19.             Return B
  20.         else
  21.             Return D
  22.         end if
  23.     else
  24.         if C > D then
  25.             Return C
  26.         else
  27.             Return D
  28.         end if
  29.     end if
  30. end if
  31. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement