Write a program that read a line of text & display its length.

#include<stdio.h>
#include<conio.h>
#include<string.h>

void main()
{
    char st[100];
    int l;

    clrscr();
    printf("Enter any line : ");
    gets(st);
   
    l=strlen(st);
    printf("String length = %d",l);

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........