python计算连续复利
Given principle amount, rate and time and we have to find the compound interest in Python.
给定原理量,速率和时间,我们必须找到Python的复利 。
计算复利 (Calculate compound interest)
To calculate compound interest, we use the following formula,
要计算复利,我们使用以下公式,
P(1 + R / 100)T
Where,
哪里,
P – Principle amount
P –本金
R – Rate of the interest, and
R –利率,以及
T – Time in the years
T –岁月
Example:
例:
Input:
p &