Skip to main content

Problem Statement

During Eid, a family is preparing gift boxes for their relatives. In addition to the planned gifts, they also decide to prepare extra gift boxes. Determine the total number of gifts prepared and the overall cost based on the price of each gift in a C program.

Test Case

Solution

Input

Output