#include <stdio.h>
int main()
{
int people,year;
for(year=2014; ;year++)
if(people<1000)
people=people*1.2;
}
else
printf("%d",year);
return 0;
people忘赋值了