#C10803. Ice Cream Orders
Ice Cream Orders
Ice Cream Orders
You are given two integers, N and M, where N is the number of ice cream flavors and M is the number of toppings available. For each flavor, a customer can choose any combination of toppings (including choosing none). This means that for every flavor, there are (2^M) possible ways to select toppings. Your task is to calculate the total number of possible orders, which is given by the formula (N \times 2^M).
inputFormat
Input is given as a single line from standard input containing two space-separated integers: N (the number of flavors) and M (the number of toppings).
outputFormat
Output a single integer representing the total number of possible ice cream orders, computed by (N \times 2^M).## sample
3 2
12