fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char bufor1[64],bufor2[64];
  6. scanf("%[ A-Za-z]s",bufor1);
  7. scanf("- %[ A-Za-z]s",bufor2);
  8. printf("\"%s\",\"%s\"",bufor1,bufor2);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2252KB
stdin
Nowy Jork - Stany Zjednoczone Ameryki
stdout
"Nowy Jork ","Stany Zjednoczone Ameryki"