for (i = 1; i <= n; i++)->for (int i = 1; i <= n; i++)
for (i = 1; i <= n; i++)
for (int i = 1; i <= n; i++)
前一种写法是C89标准的,后一种是C99标准及其以后支持的