Wednesday, March 24, 2021

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

#include<stdio.h.
#include<conio.h> 
#include<string.h>
void main ()
{
char st[100];
int l;
clrscr ();
printf("Enter any line of text: ");
gets(st);
1=strlen (st);
printf ("Length= %d",l);
getch();
}

No comments:

Post a Comment