• 2022-05-28
    以下能正确计算1╳2╳3╳...╳10的程序段是(
    A: do{k=1;n=1;n=n*k;k++;}while(k<=10);
    B: do{k=1;n=0;n=n*k;k++;}while(k<=10);
    C: k=1;n=1;do{n=n*k;k++;}while(k<=10);
    D: k=1;n=0;do{n=n*k;k++;}while(k<=10);