fork download
  1. #include <stdio.h>
  2. int main(){
  3. int M, N, angka=0;
  4. scanf("%d %d", &M, &N);
  5. for(int i=0; i<M; i++){
  6. for(int j=0; j<N; j++){
  7. printf("%d", angka);
  8.  
  9. if(j<N-1) {
  10.  
  11. }
  12. angka = (angka+1)%10;
  13. }
  14. printf("\n");
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5276KB
stdin
3 4
stdout
0123
4567
8901