aeven, aodd没有初始化
for循环没有加打括号(从for循环到printf("%d\n",num);应该用打括号扩起来)
aeven合aodd的计算有误,应该在循环累加之后,除以num来算;
只有一个应该是num==1的情况