a#include<iostream>
using namespace std;
int main()
{
char name[20];
int i=1;
cout<<"Enter your name="<<endl;
cin>>name;
while(name[i]!='\0')
{
i++;
}
cout<<"lenght of the name is="<<i;
return 0;
}
Easy programming and better way to learn the programming . if you like the scorce code do like like share and subscribe the chennel.
No comments:
Post a Comment