else without if
package com.codegym.task.task02.task0214;
/*
Minimum of two numbers
the fuck is the problem at
*/
public class Solution {
public static int min(int a, int b) {
int m2;
if (a < b);
m2 = a;
else
m2 = b;
return m2;
//write your code here
}
public static void main(String[] args) throws Exception {
System.out.println(min(12, 33));
System.out.println(min(-20, 0));
System.out.println(min(-10, -20));
}
}