Code:
import java.util.*;
public class painindarse
{public static void main(String[] args)
{double L=100;
double i;
for (i=5; i<90; i=L+20)
L=(L-i);
System.out.print(L);
}
}
well the professor put that on the board(unless I took it down wrong) and asked the class to figure out the output of L. well I guessed 95 which was wrong she worked something out and figured it was -125.
No I get home and am trying to understand how she got this and decided to just compile it and see and what do you know it gets 95.