fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.  
  6. char ch1;
  7. char ch2;
  8.  
  9. printf("문자를 입력하세요: ");
  10. scanf("%c", &ch1);
  11.  
  12. printf("문자를 입력하세요: ");
  13. scanf(" %c", &ch2);
  14.  
  15. printf("입력된 문자는 %c, %c입니다.\n", ch1, ch2);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5316KB
stdin
cb
stdout
문자를 입력하세요: 문자를 입력하세요: 입력된 문자는 c, b입니다.