The type of farming where crops are grown on the rooftops of buildings is known as urban farming.
Explanation:
1. Urban farming involves cultivating crops in urban areas such as rooftops, vacant lots, or other spaces within the city.
2. By utilizing available urban spaces like rooftops, urban farming helps increase access to fresh produce in densely populated areas.
3. It promotes sustainability, reduces food miles (the distance food travels from production to consumption), and encourages local food production.
4. Urban farming can also contribute to a greener environment by utilizing underutilized spaces for agriculture in cities.