fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char ch;
  6.  
  7. printf("文字を入力してください。(英数字)\n");
  8.  
  9. ch=getchar();
  10.  
  11. printf("%cが入力されました\n",ch);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
kamimiyorisiobaraonnsennguchi
stdout
文字を入力してください。(英数字)
kが入力されました