java 编译错误 not a statement

2025-02-27 07:32:14
推荐回答(1个)
回答1:

for (int i=1; i++; i<=n);
1,i++和i<=n的位置是反的
2,后面不应该有分号