namereq

30バイト制限

Jul 29th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6.     char str[65536];
  7.     while(1){
  8.         printf("入力してください。:");
  9.         scanf("%s", str);
  10.         int bytes = strlen(str);
  11.         if(bytes <= 30 && bytes > 0) break;
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment