单项选择题
以下for语句构成的循环执行的次数是()
#include
#define N 2
#define M N+l
#define NUM(M+1)*M/2
main()
{int i,n=0;
for(i=1;i<=NUM;i++)
{n++;printf(“%d”,n);}
printf(“\n”);}
A.5
B.6
C.8
D.9
点击查看答案&解析
相关考题
