Problem1163--【C++语言训练】求函数值

1163: 【C++语言训练】求函数值

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

按如下递归公式求函数值。
x=1时 f(x)=10;x>1时 f(x)=f(x-1)+2

Input

整型变量x

Output

f(x)

Sample Input Copy

10

Sample Output Copy

28

Source/Category

 黄金