Problem description
Input a character string and output its length.
Input format
input a character string
Output format
output string length
Sample input
An input sample that meets the requirements of the question.
HelloWorld
sample output
10
data size and convention
The length of the input string 0<N<100
This question is actually very simple. It can be said that it does not require much brainstorming. I believe that many people will not see this. It is the same sentence I said before. Any simple thing has its meaning.
Perhaps this question can help you familiarize yourself with the method of string length.
#include<stdio.h>
#include<String.h>
int main(){
char strs[100];
scanf("%s",strs);
printf("%d",strlen(strs));
return 0;
}