fork(1) download
  1. #include<stdio.h>
  2.  
  3. int main(){
  4. int in;
  5. scanf("%d", &in);
  6. for (int i = 1; i <= in; i+=4) {
  7. printf("%d %d %d PUM\n", i, i + 1, i + 2);
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0s 2116KB
stdin
28
stdout
1 2 3 PUM
5 6 7 PUM
9 10 11 PUM
13 14 15 PUM
17 18 19 PUM
21 22 23 PUM
25 26 27 PUM