Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. package makingDecisions;
  2.  
  3. public class Lesson27 {
  4.  
  5. public static void main(String[] args) {
  6. System.out.println(min(15,4,28));
  7. }
  8. static int min(int a, int b, int c) {
  9. int result=a;
  10. if (b<result) {
  11. result=b;
  12. }else if (c<result){
  13. result=c;
  14. }
  15. return result;
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement