/* File: buggy.c */ #include int main() { int balance=100; int target=1000; float rate = 0.1; int year = 0; do { float interest = balance * rate; balance = balance + interest; year++; } while ( balance >= target ); //intentional error printf("%d No. of years to achieve target balance.\n", year); return 0; }