Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static int moreLess(int a, int b) {
- if (a < b) return a;
- return b;
- }
- public static void main(String[] args) {
- System.out.println(moreLess(moreLess(8,9), moreLess(7,2)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement