public class Main
{
public static void main(String[] args)
{
int a = 2000;
int b = 1000;
int min;
if (a < b)
{
// TODO: assign min
}
else
{
// TODO: assign min
}
System.out.println("The minimum of a and b is: " + min);
}
}
public class Main
{
public static void main(String[] args)
{
int a = 2000;
int b = 1000;
int min;
if (a < b)
{
// TODO: assign min
}
else
{
// TODO: assign min
}
System.out.println("The minimum of a and b is: " + min);
}
}
//TODO
min = a;
}
else
{
//TODO
min = b;
}
Maybe…