Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.  
  2. public class sravnenie {
  3.     public static void main(String[] args){
  4.     int a = 1;
  5.     int b = 2;
  6.     int c = 3;
  7.     int d = 4;
  8.     {
  9.       if (d < c&&d < b&&d < a)
  10.       { System.out.println("min d");
  11.      }
  12.       if (c < d&&c < b&&c < a){
  13.           System.out.println("min c");
  14.      
  15.       }
  16.       if (a < b&&a < c&&a < d) {
  17.           System.out.println("min a");
  18.       }
  19.       if (b < a&&b < d&&b < c){
  20.           System.out.println("min b");
  21.     }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement