Total cost. A cupcake costs A dollars and B cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: A, B, N. It should print two numbers: total cost in dollars and cents.
Input |
Output |
2 |
10 0 |
10 |
20 30 |
3000 |
9002970 0 |
2029 |
3750220 32 |
1886 |
556585 35 |