// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class M2 {
	public static void main(String[] args) {
		double loanamt = 100001.00;
		double repayment = 0.00;
		for(int i = 0; i < 100; i++) {
			repayment += 1000.01;
		}
		System.out.printf("You borrowed %.2f\n", loanamt);
		System.out.printf("You repaid %.2f\n", repayment);
		if(repayment < loanamt) {
			System.out.println("You still owe " + (loanamt - repayment));
		} else if(repayment > loanamt) {
			System.out.println("You will get a refund of " + (repayment - loanamt));
		} else {
			System.out.println("All good");
		}
	}
}
