insse suprafata arabila pe ani

#include <stdio.h>

int main() {
    int years;
    float area;

    // Input the number of years
    printf("Enter the number of years: ");
    scanf("%d", &years);

    // Input the arable land area for each year
    for (int i = 1; i <= years; i++) {
        printf("Enter the arable land area for year %d: ", i);
        float landArea;
        scanf("%f", &landArea);

        // Accumulate the total arable land area
        area += landArea;
    }

    // Display the total arable land area
    printf("Total arable land area over %d years: %.2f\n", years, area);

    return 0;
}