Apple problem
Limits: 2 sec., 512 MiB
This statement was translated automatically from Ukrainian.
Zenyk has \(a\) apples. Zenyk also has \(b\) friends, each of whom will come to Zenyk and give him \(c\) apples. How many apples will Zenyk have?
Input
The single line contains three numbers \(a\), \(b\), and \(c\) — how many apples Zenyk has, how many friends he has, and how many apples Zenyk will receive from each of the friends.
Output
Print a single number — how many apples Zenyk will have.
You need to output to the standard output stream (console). Your
output must strictly match the problem requirements. No additional data
needs to be output. For example, if you output something like
Enter a, b, c: before reading the numbers, or
Answer for the problem: before printing the answer, you
will receive the verdict Wrong Answer.
Constraints
\(1 \leq a,b,c \leq 100\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 2 4 4 | 18 |
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|