#K92452. Bake Sale Income Calculation
Bake Sale Income Calculation
Bake Sale Income Calculation
You are given the number of cookies (c), brownies (b), and cupcakes (k) sold at a bake sale. Each cookie is priced at $2, each brownie at $3, and each cupcake at $4.
Your task is to calculate the total income from the bake sale.
The total income is computed using the formula:
$$\text{Total Income} = 2c + 3b + 4k$$
Read the input from standard input and output the result to standard output.
inputFormat
The input consists of a single line containing three integers c, b, and k, separated by spaces, representing the number of cookies, brownies, and cupcakes sold, respectively.
outputFormat
Output a single integer which is the total income computed as 2c + 3b + 4k.
## sample0 0 0
0
</p>