Calculate Currency Change
Your friend Rahul plans to visit exotic countries all around the world. Sadly, Rahul’s math skills aren’t good. He’s pretty worried about being scammed by currency exchanges during his trip – and he wants you to make a currency calculator for him. Here are his specifications for the app:
Given the amount of money before exchange and the amount of money that is taken from the budget to be exchanged, print the amount of money that is left from the budget.
First line contains an integer N denoting the total budget, amount of money before exchange.
Second line contains an integer M denoting the exchanging amount, denoting the amount of money that is taken from the budget to be exchanged.
Print a single line denoting the amount of money that is left from the budget.
1 <= N <= 1000
1 <= M <= N
Note: The problem constraints mean that when we test your code, the test cases used in the backend can have input values only within those constraints. You need not implement them in your code. You need to make sure your code will work for all such input values!