Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package makingDecisions;
- public class Lesson27 {
- public static void main(String[] args) {
- System.out.println(min(15,4,28));
- }
- static int min(int a, int b, int c) {
- int result=a;
- if (b<result) {
- result=b;
- }else if (c<result){
- result=c;
- }
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement