【简答题】以下for语句构成的循环执行了( )次。#include #define N 2#define M N+1#define NUM (M+1)*M/2int main(){ int i,n=0; for(i=1;i<=NUM;i++) { n++; printf("%d",n); } printf("\n"); return 0;}A. 5 B. 6 C. 8 D. 9
【简答题】以下for语句构成的循环执行了多少次? #include #define N 2 #define M N+1 #define NUM (M+1)*M/2 main() { int i , n=0; for ( i=1;i<=NUM;i + + ) {n + + ; printf("%d",n); } printf("\n");...
【单选题】以下for语句构成的循环执行了()次。#include "stdio.h"#define N 2#define M N+1#define NUM (M+1)*M/2main(){int i , n=0;for(i=1;i<=NUM;i++){n++;printf("%d",n);}printf("\n");}