#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
                char name[20];
                clrscr();
                cout<<"Enter Your Name : ";
                cin>>name;
                cout<<"\nThe Entered Name Is : "<<name;
                cout<<"\nAnd Its Length : "<<strlen(name);
                getch();
}

124.PNG

Advertisements