Int row =10; for( ; row>0;){ int col=row; while(col>=0){ System.out.println(col+" "); col-=2; } row=row/col; }
选项:
A: 10 8 6 4 2 0
B: 10 8 6 4 2
C: AnArithmeticException is thrown at runtime
D:e program goes into an infinite loop outputting :10 8 6 4 2 0 ...
E:Compilation fails
发布时间:2024-05-21 20:40:27