SHARE
TWEET

min_three()

daniil_mironoff Jun 14th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int min_three(int var_1, int var_2, int var_3) {
  2.     if (var_1 < var_2 & var_1 < var_3) {
  3.         return var_1;
  4.     } else
  5.        
  6.     if (var2 < var_1 & var_2 < var_3) {
  7.         return var_2;
  8.     }
  9.    
  10.     else {
  11.         return var_3;
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top