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.
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.
1 answer