#include #include #include #include #include #include #include //A fast-food chain menu is selling a burger, a can of soda, and a combo meal containing a burger and a can of soda, at prices known //to you. int profit(int b, int s, int c) { //Case 1: Refer to the problem statement for this case. //Case 2: The selling price of a burger is , soda is , a return b+s-c; // Return the fixed profit. //Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a //can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . } int main() { int t; //Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a //can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . scanf("%i", &t); for(int a0 = 0; a0 < t; a0++){ // Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make //a can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . int b; int s; //Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make //a can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . int c; // Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make //a can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . scanf("%i %i %i", &b, &s, &c); int result = profit(b, s, c); //Case 2: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make //a can of soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . //Case 3: The selling price of a burger is , soda is , and combo meal is . If the cost to make a burger is , the cost to make a can of //soda is and the fixed profit is , you can verify the given selling prices as, and . Hence, the answer is . printf("%d\n", result); } return 0; }