while (done = false)
{
if (((int1 / int2) >= 1.0) && ((int1 / int3) >= 1.0))
{
System.out.println(outputInt1 + " ");
int1 = 0.1;
}
if (((int2 / int1) >= 1.0) && ((int2 / int3) >= 1.0))
{
System.out.println(outputInt2 + " ");
int2 = 0.1;
}
if (((int3 / int1) >= 1.0) && ((int3 / int2) >= 1.0))
{
System.out.println(outputInt3 + " ");
int3 = 0.1;
}
else if ((int1 == 0.1) && (int2 == 0.1) && (int3 == 0.1))
{
done = true;
}
}
Hi, I can't seem to be able to figure out why this while statement will not run. In the console it simply will not print anything in the if statements.
I assume it's an error with my arithmetic in the if condition.
Thanks!