SCHOOL08-Editorial

PROBLEM LINK:

Practice : SCHOOL08 Problem - CodeChef

Contest :Contest Page | CodeChef

Author: laks
Editorialist: laks

DIFFICULTY:

CAKEWALK.

PREREQUISITES:

NO.

COOL PROBLEM

PROBLEM:

Sham created a bank account and recently get an ATM. When Sham buys items from the shop and then deposited some money in the bank. Sham is busy somewhere else can you help Sham to calculate his MONEY.

Input: - First-line will contain an integer, shows total amount. - Second-line will contain integer , shows item buy price. - Third-line will contain integer N, shows price deposited in bank.

Output:

For each testcase, output in a single line answer given the TOTAL price left.

QUICK EXPLANATION:

In this, a problem you have to create a program in which you should enter the 3 input that represents total amount, item buy price, price deposited in bank respectively find the final amount.

EXPLANATION:

In this, you have to write code like this first, you have to write simple code but problem statement is cool . SEE CODE FOR EASY UNDERSTANDING.

SOLUTIONS:

[details=“Setter’s Solution”]
https://www.codechef.com/viewsolution/25772668