你吃了吗? (nǐ chī le ma?)
This is a very informal and friendly way to ask. It's a common greeting, especially in the morning or lunchtime.
Here are some other ways to ask, depending on the context:
* 你吃饭了吗? (nǐ chī fàn le ma?) - This is a more formal way to ask "Have you eaten rice yet?"
* 你已经吃过饭了吗? (nǐ yǐjīng chī guò fàn le ma?) - This is a very formal way to ask "Have you already eaten?"
It's important to note that the question "Have you eaten yet?" is not just a simple inquiry about someone's eating habits. It is often used as a polite way to show concern and to offer food or company.