HTML & JS
N, X, Y= map(int,input().split())
print((Y*(N-2))-(X*(N-2))+1)

Generated URL:

Output:

3
Report Bug