4541: 习题3-1 计算国民生产总值增长倍数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:16 Solved:1

Description

假如我国国民生产总值的年增长率为9%,计算10年后我国国民生产总值与现在相比增长多少百分比(倍数)。计算公式为p=(1+r)n

其中:r为年增长率,n为年数,p为与现在相比的倍数

对于求an, C语言的数学库函数中有求指数的函数pow(a, n)

Input

无,增长率与年数以赋值的方式给出

Output

p=增长倍数,注意末尾的换行

Sample Input Copy

Sample Output Copy

p=2.367364