测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A61983. 在C++中,若n=2,m=3,下面程序段中语句“s=s+j”重复执行( )次。for(inti=0; i<n; i++) { for(intj=1; j<=m; j++) { s=s+j; }}

单选题

题目描述

在C++中,若n=2,m=3,下面程序段中语句“s=s+j”重复执行(   )次。

for(inti=0; i<n; i++) {

    for(intj=1; j<=m; j++) {

        s=s+j;

    }

}

选项(单选)