Відповідь:
C++ code:
#include <iostream>
int main(){
setlocale(LC_ALL,"Ukrainian");
double gekt = 100,cent = 20,temp;
for(int i = 1; i <= 8; i++){
std::cout << i << "-ий рiк" << std::endl;
std::cout << "Дiлянка " << gekt << " гектарiв" << std::endl;
std::cout << "Середня врожайнiсть " << cent << " центнерiв" << std::endl;
temp = (gekt * 5)/ 100;
gekt += temp;
temp = (cent * 2) / 100;
cent += temp;
}
return 0;
}