Asked by puja

write the c programe to find the simple intrest of amount which is supplied by user with the rate of 3% if ammount <10,000 and5% if ammount >10,000 for 5 years.

Answers

Answered by Steve
I assume you know C, so just code up

rate = (amt < 10000) ? 0.03 : 0.05;
interest = rate * amt * years;

Better fix things, so that an exact amount of 10,000 is included somewhere in the condition.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions