#include <stdio.h>
size_t mystrlen(const char* a){
    size_t i=0;
    while(a[i]!='\0'){
        i++;
    }
    return i;
}
int main(){
    char a[1001];
    printf("1000文字以内の文字列を入力してください\n");
    scanf("%s",a);
    printf("文字列は%zu文字です",mystrlen(a));
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: