Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class sravnenie {
- public static void main(String[] args){
- int a = 1;
- int b = 2;
- int c = 3;
- int d = 4;
- {
- if (d < c&&d < b&&d < a)
- { System.out.println("min d");
- }
- if (c < d&&c < b&&c < a){
- System.out.println("min c");
- }
- if (a < b&&a < c&&a < d) {
- System.out.println("min a");
- }
- if (b < a&&b < d&&b < c){
- System.out.println("min b");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement