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.
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!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.