fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int in, i;
  5. scanf( "%d", &in );
  6. for( i = 1; i <= in; i++ )
  7. if( i & 3 ) { printf( "%d ", i ); } else { printf( "PUM\n" ); }
  8. return 0;
  9. }
Success #stdin #stdout 0s 2160KB
stdin
10
stdout
1 2 3 PUM
5 6 7 PUM
9 10