Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
165 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int A, A1, b, c, d;

	cin >> A >> b >> c;
	c = c - 1;
	d = b - A;
	A1 = A + (c * d);
	cout << A1;
}