单项选择题

有以下程序: main() { int i; for(i=1,i<=40;i++) {if(i++%5==0) if(++i%8==0)printf("%d",i); } printf ("\n"); } 执行后的输出结果是______。

A.5
B.24
C.32
D.40