hi what am i missing i realy cant get it... plz more advice... i cant move on to the new task for a like a long time now...
package com.codegym.task.task02.task0216;
/*
Minimum of three numbers
*/
public class Solution {
public static int min(int a, int b, int c) {
//write your code here
int result=0;
if(a<=b | a<=c) result = a;
if(c<=a | c<=b) result = c;
if(b<=a | b<=c) result = b;
else result = 0;
return(result);
}
public static void main(String[] args) throws Exception {
System.out.println(min(3, 1, 2));
System.out.println(min(-1, -2, 1));
System.out.println(min(6, 5, 3));
System.out.println(min(7, 5, 10));
}
}