fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char str[100];
  6.  
  7. printf("文字列を入力してください。\n");
  8.  
  9. scanf("%s", str);
  10.  
  11. printf("入力した文字列は%sです。\n", str);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 5324KB
stdin
kamimiyorishiobaraonsenguchi
stdout
文字列を入力してください。
入力した文字列はkamimiyorishiobaraonsenguchiです。