Untitled
unknown
plain_text
3 years ago
165 B
5
Indexable
#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;
}Editor is loading...
#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;
}