·¢²¼Ê±¼ä:2023-12-24 22:33:06 ÎÄÕÂÀ´Ô´:»¥ÁªÍø
΢²© ΢ÐÅ QQ¿Õ¼ä

±à³Ì´æ¿îÀûÂʼÆË㣬±à³Ì35ÖÖËã·¨

¹ØÓÚ±à³Ì´æ¿îÀûÂʼÆËãºÜ¶àÅóÓѶ¼»¹²»Ì«Ã÷°×£¬½ñÌìС±à¾ÍÀ´Îª´ó¼Ò·ÖÏí¹ØÓÚ±à³Ì35ÖÖËã·¨µÄ֪ʶ£¬Ï£Íû¶Ô¸÷λÓÐËù°ïÖú£¡

ÉèÒøÐж¨ÆÚ´æ¿îµÄÄêÀûÂÊrateΪ2.25%£¬ÒÑÖª´æ¿îÆÚΪnÄ꣬´æ¿î±¾½ðΪcapitalÔª£¬ÊÔ±à³Ì¼ÆËã²¢Êä³önÄêºóµÄ±¾ÀûÖ®ºÍdeposit¡£³ÌÐòÖÐËùÓи¡µãÊýµÄÊý¾ÝÀàÐ;ùΪdoubleÀàÐÍ¡£

ÉèÒøÐж¨ÆÚ´æ¿îµÄÄêÀûÂÊrateΪ2.25%£¬ÒÑÖª´æ¿îÆÚΪnÄ꣬´æ¿î±¾½ðΪcapitalÔª£¬ÊÔ±à³Ì¼ÆËã²¢Êä³önÄêºóµÄ±¾ÀûÖ®ºÍdeposit¡£³ÌÐòÖÐËùÓи¡µãÊýµÄÊý¾ÝÀàÐ;ùΪdoubleÀàÐÍ¡£#include<stdio.h>#include<math.h>intmain(){ intyear; doublerate,deposit,capital; printf("Pleaseenterrate,year,capital:\n"); scanf("%lf,%d,%lf",&rate,&year,&capital); deposit=capital*(1+rate)*pow(1+rate,year-1); printf("deposit=%.3f\n",deposit); return0;}

ÏÖÔÚËùÓеļ۸ñ¶¼ÔÚ1Íò8-2Íò2Ö®¼ä£¬¾ù¼Û²î²»¶à2Íò×óÓÒ¡£µ«ÊÇÒ»¶¨Òª×¢ÒâһЩС»ú¹¹µÄ¿Ó£¬Ê²Ã´Ð¡¶î´ûɶµÄÀûÏ¢·Ç³£¸ßµÄ¡£Èç¹ûÏëѧµÄ»°ÎÒ½¨ÒéÄãÈ¥Á˽âÒ»ÏÂÖй«½ÌÓýÓžÍÒµ£¬¼Û¸ñÒ²²î²»¶à2Íò×óÓÒ£¨ÐèÒª¿´Äã¾ßÌåѧÄĸö·½Ïò£©µ«ÊÇËûÃÇÊÇ°ü³ÔסµÄ£¬Ñ§Ï°ÐèÒª°ëÄêÒÔÉϳÔס·ÑÓÃÒ²ÊÇÒ»±Ê²»Ð¡µÄ¿ª×Ê¡£

Èç¹ûÄ㻹ÏëÁ˽â¸ü¶àÕâ·½ÃæµÄÐÅÏ¢£¬¼ÇµÃÊղعØ×¢±¾Õ¾¡£

ÁíÒ»ÊÓ½Ç

»»Ò»»»