#2342. 练11.3 等差数列末项计算
练11.3 等差数列末项计算
说明
给出一个等差数列的前两项$a_1$,$a_2$,求第$n$项是多少。输入格式
一行,包含三个整数$a_1$,$a_2$,$n$。$−100≤a_1$,$a_2≤100$,$0< n ≤ 1000$。输出格式
一个整数,即第$n$项的值。1 4 100
298
1 4 100
298
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.