fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char buf[12];
  6. scanf("%11s ", buf);
  7. if(strlen(buf)!=11) return -1;
  8. printf("Rok: %c%c\nMiesiac: %c%c\nDzien: %c%c\nPlec: %c\n",
  9. buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[9]);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 1792KB
stdin
01234567890
stdout
Rok: 01
Miesiac: 23
Dzien: 45
Plec: 9