#include <stdio.h>

int main() {
    char a[100];
    int i,b;
    printf("Enter the string \n");
    scanf("%s",a);
    
    for(i=0;a[i]!='\0';i++){
        b++;
    }
    
    printf("%d",b);
    return 0;
}

Embed on website

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