It says variable c might not have been initialized.
I've declared the c variable as an int. Don't know what wrong. Please help

package com.codegym.task.task02.task0214;
/*
Minimum of two numbers
*/
public class Solution {
public static int min(int a, int b) {
//write your code here
int c;
if (a < b){
a = c;
}
else if (b < a){
b = c;
}
else {
}
return c;
}
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));
}
}

a = 5(a is set to the value of 5)a = b(a is set to the value of b) Incorrect examples:5 = ab = a(this is incorrect if you want a to be set to b)Here is a tip to consider: Logically this problem is very easy. The min(a, b) method should return the minimum of the two numbers passed to it. As you have already figured out you must compare the two numbers to get to the correct answer. When comparing any two numbers there are only 3 possible outcomes: 1) the first number is less than the second number 2) the first number is greater than the second number 3) the first number equals the second number for these three cases this program should: 1) return the first number 2) return the second number 3) return either of the two numbers Here is the thing: logically, you only need to make one comparison (one if statement) to get to a correct conclusion.