Programming 01

馃煝聽諑铡謤摘崭謧诈盏崭謧斩 23

論崭謤毡榨諞謩 铡占铡斩謥 债謤铡眨斋謤炸 铡辗窄铡湛铡謥斩榨宅崭謧 蘸铡湛铡战窄铡斩榨宅, 诈榨 斋諡斩展 寨湛蘸斋 债謤铡眨斋謤炸謮
#include <iostream>
int main() {
   int N = 3;
   int M = 4;
   for (int i = 0; i < N; i++) {
      for (int j = 0; j < M; j++) {
         if (j == 2) {
           break;
         }
         std::cout << j; 
      }
      std::cout << " ";
   }
}
To check your solution you need to sign in
Sign in to continue