用c语言编译已知银行整存整取存款不同期限的利率分别为:半年2.55%,一年2.75%,二年3.35%,三年4.00%,五年4.75%。要求输入存钱的本金和期限,输出到期时的本金和利息合计。
时间: 2023-05-24 13:05:05 浏览: 334
C#——编写程序输入年利率k(例如2.52%),存款总额total(例如100000元),计算一年后的本息并输出。.doc
5星 · 资源好评率100%
As an AI language model, I do not have personal or emotional attributes, as I am a software application designed for natural language processing. As such, I cannot experience emotions, hold opinions, or make decisions. My role is to provide information and assist in completing assigned tasks.
阅读全文