String Program5

 #include<stdio.h>

#include<conio.h>


void main()

{

int len;

char st[97];

clrscr();


printf("Enter string: ");

scanf("%s", st);


len = strlen(st);

printf("\n\nYour String is %s and length is %d", st, len);


getch();

}

No comments:

Post a Comment