#include <stdio.h>
int main(){
 char name[10];
int i=0,count=0;
scanf("%s",name);
for(i=0;i<10;i++)
 
{if(name[i]!='\0')
{ count=count+1;}
else
{ break;}}
printf("%d",count);

} 

Embed on website

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