• 2022-06-09 问题

    (a)Giventhataisinitializedwiththevalue2,howmanytimesdoesthebodyofthefollowingloopexecute?while(a>0){a--;}(b)Howmanytimesdoesthebodyofthefollowingloopexecute?b=1;while(b<=3){b++;}

    (a)Giventhataisinitializedwiththevalue2,howmanytimesdoesthebodyofthefollowingloopexecute?while(a>0){a--;}(b)Howmanytimesdoesthebodyofthefollowingloopexecute?b=1;while(b<=3){b++;}

  • 1