1. 糖果 (táng guǒ) - This is the most common way to write "candy" in Chinese and refers to general candy. It literally means "sugar fruit".
2. 糖 (táng) - This word refers to sugar in Chinese, and is sometimes used to refer to candy, especially hard candy or sweet treats that are primarily made of sugar.
So, depending on the context, you can use either "糖果" or "糖" to express "candy".