我這有什么問題,為啥運行是空白,也沒說運行錯誤
#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;
? }
#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;
? }
2019-11-01
舉報
2019-11-01
people忘賦值了