what is the difference between the c . i . on rs . 9000 for 1 1 / 2 years at 4 % per annum compounded yearly and half - yearly ?
n0 = 9000.0
n1 = 1.0
n2 = 1.0
n3 = 2.0
n4 = 4.0
t0 = n3 / 100.0
t1 = n4 / 100.0
t2 = t0 + 1.0
t3 = t1 + 1.0
t4 = t2 * t2
t5 = t2 * t3
t6 = t2 * t4
t7 = n0 * t5
t8 = n0 * t6
answer = t8 - t7
print(answer)