Back to tasks
A 3 for 2 deal
BeginnerPython for kids 路 Lesson 31: Module 2 summary: Decisions
Problem Statement
The shop has a deal: every third item is free. Read the price of one item and the number of items. Print how much to pay.
Input Format
Two whole numbers: the price (1..100) and the number of items (1..100), each on its own line.
Output Format
One number - the result.
Examples
Example 1
Input
5 3
Output
10
Example 2
Input
5 7
Output
25