问答详情
源自:4-12 循环结构之多重循环

k<2*i-1求大神解答

在k<2*i-1中,竟然k是代表有多少个*,那不是应该是k=2*i-1吗?

提问者:qq_追着太阳跑_mpzEIW 2019-07-11 21:03

个回答

  • 慕设计0552238
    2019-07-12 01:31:56

    Because in this case k starts with 0, which means if the k value satisfies k<2*i-1, the command below will excute.  You may need to know that k itself has no relation to the number of *, however, it is the number of k that satisfying the formula matters.