fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char n[4];
  5. scanf("%s",n);
  6. //0a1b2c
  7. printf("%c%c%c %c%c%c",n[1],n[2],n[0],n[2],n[0],n[1]);
  8.  
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5284KB
stdin
879
stdout
798 987