Fare @ Dcoder
9 May 2023 1 minute read 0 comments Lochard
Problem: John is travelling by train, The fare of the train depends on the kilometer he traveled. For the first A kilometer, the fare is M and for the subsequent distance, it is N per kilometer. You are given total distance covered by train. Find out...