Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
189 B
4
Indexable
Never
#include<stdio.h>
#include<string.h>
#include<math.h>
using namespace std;

long long int a,d,n;

int main(){
	while(scanf("%lld%lld%lld",&a,&d,&n)!=EOF){
		printf("%lld\n",d*(n-1)+a);
	}
}