SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Zahlen {
  2.     public static int max3(int a, int b, int c) {
  3.         if (a >= b) {
  4.             if (a >= c) {
  5.                 return a;
  6.             } else {
  7.                 return c;
  8.             }
  9.         } else if (a >= c); {
  10.             return a;
  11.         } else if (b >= c); {
  12.                 return c;
  13.             } else {
  14.                 return b;
  15.             }
  16.         }
  17.     public static void main (String [] args) {
  18.         System.out.println(max3(-1,2,1));
  19.     }
  20.    
  21. }
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