There are mainly two modes of nutrition:
Autotrophic: Autotrophic nutrition is that mode of nutrition in which an organism makes its own food from the simple inorganic materials like carbon-dioxide and water present in the surroundings (with the help of sunlight energy).
Example: Green plants obtain food by autotrophic nutrition.
Heterotrophic: Heterotrophic nutrition is that mode of nutrition in which an organism cannot make its own food from simple inorganic materials like carbon-dioxide and water, and depends on other organisms for its food.
Example: All animals obtain food by heterotrophic nutrition.