fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int
  5. main(void)
  6. {
  7. for (int i = 1; i <= 72; ++i) {
  8. printf("Flat %d Dock %d Level %d\n", i, (i/(9*4))+1, i%(9*4));
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0.02s 1676KB
stdin
Standard input is empty
stdout
Flat 1 Dock 1 Level 1
Flat 2 Dock 1 Level 2
Flat 3 Dock 1 Level 3
Flat 4 Dock 1 Level 4
Flat 5 Dock 1 Level 5
Flat 6 Dock 1 Level 6
Flat 7 Dock 1 Level 7
Flat 8 Dock 1 Level 8
Flat 9 Dock 1 Level 9
Flat 10 Dock 1 Level 10
Flat 11 Dock 1 Level 11
Flat 12 Dock 1 Level 12
Flat 13 Dock 1 Level 13
Flat 14 Dock 1 Level 14
Flat 15 Dock 1 Level 15
Flat 16 Dock 1 Level 16
Flat 17 Dock 1 Level 17
Flat 18 Dock 1 Level 18
Flat 19 Dock 1 Level 19
Flat 20 Dock 1 Level 20
Flat 21 Dock 1 Level 21
Flat 22 Dock 1 Level 22
Flat 23 Dock 1 Level 23
Flat 24 Dock 1 Level 24
Flat 25 Dock 1 Level 25
Flat 26 Dock 1 Level 26
Flat 27 Dock 1 Level 27
Flat 28 Dock 1 Level 28
Flat 29 Dock 1 Level 29
Flat 30 Dock 1 Level 30
Flat 31 Dock 1 Level 31
Flat 32 Dock 1 Level 32
Flat 33 Dock 1 Level 33
Flat 34 Dock 1 Level 34
Flat 35 Dock 1 Level 35
Flat 36 Dock 2 Level 0
Flat 37 Dock 2 Level 1
Flat 38 Dock 2 Level 2
Flat 39 Dock 2 Level 3
Flat 40 Dock 2 Level 4
Flat 41 Dock 2 Level 5
Flat 42 Dock 2 Level 6
Flat 43 Dock 2 Level 7
Flat 44 Dock 2 Level 8
Flat 45 Dock 2 Level 9
Flat 46 Dock 2 Level 10
Flat 47 Dock 2 Level 11
Flat 48 Dock 2 Level 12
Flat 49 Dock 2 Level 13
Flat 50 Dock 2 Level 14
Flat 51 Dock 2 Level 15
Flat 52 Dock 2 Level 16
Flat 53 Dock 2 Level 17
Flat 54 Dock 2 Level 18
Flat 55 Dock 2 Level 19
Flat 56 Dock 2 Level 20
Flat 57 Dock 2 Level 21
Flat 58 Dock 2 Level 22
Flat 59 Dock 2 Level 23
Flat 60 Dock 2 Level 24
Flat 61 Dock 2 Level 25
Flat 62 Dock 2 Level 26
Flat 63 Dock 2 Level 27
Flat 64 Dock 2 Level 28
Flat 65 Dock 2 Level 29
Flat 66 Dock 2 Level 30
Flat 67 Dock 2 Level 31
Flat 68 Dock 2 Level 32
Flat 69 Dock 2 Level 33
Flat 70 Dock 2 Level 34
Flat 71 Dock 2 Level 35
Flat 72 Dock 3 Level 0