Как мне преобразовать этот код в C
def getDescription (type_plan ): string = "" # Check the plan type GENERAL if type_plan[0] == 'A': # Check the type of plan if type_plan == "A1": string += "Annual Claim Limit 100.000\n" # Check the type of plan elif type_plan == "A2": string += "Lifetime Claim Limit 500000\n" string += "Room Charges 150/day\n" string += "Intensive Care Unit (ICU) Charges 300/day\n" string += "Hospital Supplies and Services : As charged. Subject to approval by EZMediLife. Surgical Fees\n" # Check the plan type GENERAL elif type_plan[0] == 'B': # Check the type of plan if type_plan == "B1": string += "Annual Claim Limit 200000\n" # Check the type of plan elif type_plan == "B2": string += "Lifetime Claim Limit 1000000\n" string += "Room Charges 200/day\n" string += "Intensive Care Unit (ICU) Charges 500/day\n" string += "Hospital Supplies and Services : As charged. Subject to approval by EZMediLife. Surgical Fees\n" # Check the plan type GENERAL elif type_plan[0] == 'C': if type_plan == "C1": string += "Annual Claim Limit 300000\n" elif type_plan == "C2": string += "Lifetime Claim Limit 2000000\n" string += "Room Charges 300/day\n" string += "Intensive Care Unit (ICU) Charges 900/day\n" string += "Hospital Supplies and Services : As charged. Subject to approval by EZMediLife. Surgical Fees\n" return string
Что я уже пробовал:
я попробовал требования написать на python. я мало что знаю о языке Си.